FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests