sund / auto-gitlab-backup

A simple script to backup your Gitlab data. This script will copy the backup archives of your gitlab installation via rsync, or scp. Also, you can copy backups to Backblaze’s B2 Cloud Storage service.
http://sund.github.io/auto-gitlab-backup/
GNU General Public License v2.0
317 stars 73 forks source link

Feature Request: Disable delete on rsync end #14

Closed jloh closed 10 years ago

jloh commented 10 years ago

Hey there,

I'm wondering if it's possible to enable a option to disable the delete feature on the backup server end? This is because I'd like to have the backups on my gitlab server be deleted once they're a week old but a 6 months old on by backup server end due to space constraints on the gitlab server end.

sund commented 10 years ago

One could change the rsync commands in the script. The -b flag is maybe what you are after.

Alternately, you could forgo the use of the remote copy in this script and create a new script that does what you are looking for.

In my production environment, I don't have the disk space nor the need to archive the backups so I can't add what you are after as a feature.