Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: bash script backup + prime cli #5755

Open
1 task done
MrGrock opened this issue Oct 4, 2024 · 0 comments
Open
1 task done

[feature]: bash script backup + prime cli #5755

MrGrock opened this issue Oct 4, 2024 · 0 comments
Assignees

Comments

@MrGrock
Copy link

MrGrock commented Oct 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Hello!
I have a request for Prime-Cli.
I'm using "prime-cli backup" but can't create the cron script because it didn't stop the cli script when the backup finished.
Maybe you can create a special flag and run the script without the UI console?

Why should this be worked on?

My script

`#!/bin/bash

backups_plane="/opt/plane/backups/"
backups="/mnt/backups/"
backup_dir="$backups""plane/"

'''prime-cli backup'''

cd ${backups_plane}

if ! [ ls | wc -l -eq 0 ]
then
echo "Not Empty"
mkdir ${backup_dir}
cp * ${backup_dir} && rm *
fi`

backups are the remote host directory (nas+smb).
I'm using the "cp" command because of another error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants