[feature]: bash script backup + prime cli
@vihar is already working on this.
Since Oct 4, 2024.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.