makeplane / makeplane/plane

[feature]: bash script backup + prime cli

Open
#5,755 1 comment 5 reactions 2 assignees View on GitHub

@vihar is already working on this.

Since Oct 4, 2024.

✨feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.