makeplane / plane

🔥 🔥 🔥 Open Source JIRA, Linear, Monday, and Asana Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
http://plane.so
GNU Affero General Public License v3.0
30.97k stars 1.74k forks source link

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

Open MrGrock opened 1 month ago

MrGrock commented 1 month ago

Is there an existing issue for this?

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.

MrGrock commented 1 month ago

Or may be after ending backup, start timer 10 sec for auto exit?