Skip to content

Commit 240202e

Browse files
committed
chore: store only 2 full backups
This means that we would have backups for the last 2 weeks. [skip ci]
1 parent c67d65d commit 240202e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/vagrant/provisioning/roles/mystamps-backup/templates/remote-backup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ case "${1:-}" in
2020
su mystamps 2>&1 \
2121
-c "${DUPLICITY_CMD} --name=uploads --no-encryption /data/uploads ${UPLOADS_DST}"
2222
su mystamps 2>&1 \
23-
-c "duplicity remove-all-but-n-full 4 --force ${UPLOADS_DST}"
23+
-c "duplicity remove-all-but-n-full 2 --force ${UPLOADS_DST}"
2424
;;
2525
'mysql-backups')
2626
PASSPHRASE="$PASSPHRASE" su mystamps 2>&1 \
2727
-c "${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST}"
2828
PASSPHRASE="$PASSPHRASE" su mystamps 2>&1 \
29-
-c "duplicity remove-all-but-n-full 4 --force ${MYSQL_BACKUPS_DST}"
29+
-c "duplicity remove-all-but-n-full 2 --force ${MYSQL_BACKUPS_DST}"
3030
;;
3131
*)
3232
echo 2>&1 "Usage: $(dirname "$0") (uploads|mysql-backups)"

0 commit comments

Comments
 (0)