2
[feature]: bash script backup + prime cli
Source: makeplane/plane#5755 · opened by @MrGrock
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.
• 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.
No pledges yet. Be the first to back this.
Comments
Similar requests
[feature]: autostart self-hosted
0 votes · 0 comments
[feature]: Improve setup.sh script with better error handling and user feedback
0 votes · 0 comments
[feature]: Ability to call indivudual option by flags on setup.sh
0 votes · 0 comments
[feature]: File-based provisioning / environmental variables for authentication
0 votes · 0 comments
[feature]: ability to add and use custom fonts
3 votes · 0 comments
No comments yet.