mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 03:38:40 +00:00
started with template fixes
This commit is contained in:
parent
c2c5f5b610
commit
46b6a68177
|
|
@ -57,22 +57,22 @@ borg create \
|
||||||
--exclude-caches \
|
--exclude-caches \
|
||||||
--exclude 'home/*/.cache/*' \
|
--exclude 'home/*/.cache/*' \
|
||||||
--exclude 'var/tmp/*' \
|
--exclude 'var/tmp/*' \
|
||||||
|
--exclude '*.log' \
|
||||||
\
|
\
|
||||||
${BACKUP_PATH}::${TIMESTAMP}-$$-www \
|
${BACKUP_PATH}::${TIMESTAMP}-$$-www \
|
||||||
${TO_BACKUP}
|
${TO_BACKUP}
|
||||||
|
|
||||||
backup_exit=$?
|
backup_exit=$?
|
||||||
|
|
||||||
## Only keep 7 daily, 4 weekly and 6 monthly backups
|
## Only keep 1 daily, 0 weekly and 3 monthly backups
|
||||||
info "Pruning repository"
|
info "Pruning repository"
|
||||||
|
|
||||||
borg prune \
|
borg prune \
|
||||||
--list \
|
--list \
|
||||||
--glob-archives '{hostname}-*' \
|
--glob-archives '{hostname}-*' \
|
||||||
--show-rc \
|
--show-rc \
|
||||||
--keep-daily 7 \
|
--keep-daily 1 \
|
||||||
--keep-weekly 4 \
|
--keep-monthly 3 \
|
||||||
--keep-monthly 6 \
|
|
||||||
--keep-yearly 10
|
--keep-yearly 10
|
||||||
|
|
||||||
prune_exit=$?
|
prune_exit=$?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user