offsite backup fix packages wrong path, set max offsite size to 5Gb, reset borg repo
All checks were successful
/ continuous-deploy (push) Successful in 19s
All checks were successful
/ continuous-deploy (push) Successful in 19s
This commit is contained in:
@@ -82,7 +82,7 @@ spec:
|
||||
value: ssh -p 2222 -o StrictHostKeyChecking=no -o LogLevel=ERROR
|
||||
|
||||
- name: REPO_SYNC_MAX_SIZE
|
||||
value: "21474836480" # 20GB
|
||||
value: "5368709120" # 5GB
|
||||
|
||||
- name: MODE
|
||||
value: SHELL
|
||||
@@ -99,7 +99,7 @@ spec:
|
||||
# done
|
||||
|
||||
borg create ${BORG_REPO}::postgresql-export-$(date +%Y%m%d%H%M%S) /data/postgresql-export
|
||||
borg create ${BORG_REPO}::gitea-data-$(date +%Y%m%d%H%M%S) /data/gitea-data --exclude /data/packages --exclude /data/tmp
|
||||
borg create ${BORG_REPO}::gitea-data-$(date +%Y%m%d%H%M%S) /data/gitea-data --exclude /data/gitea-data/packages --exclude /data/gitea-data/tmp
|
||||
|
||||
#cleanup
|
||||
borg prune -v --list --keep-daily=10 --keep-weekly=7 --keep-monthly=-1 ${BORG_REPO} --glob-archives='gitea-data*'
|
||||
|
||||
Reference in New Issue
Block a user