File tree 1 file changed +3
-3
lines changed
vagrant/provisioning/roles/mystamps-backup/templates
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ case "${1:-}" in
20
20
su mystamps 2>&1 \
21
21
-c " ${DUPLICITY_CMD} --name=uploads --no-encryption /data/uploads ${UPLOADS_DST} "
22
22
su mystamps 2>&1 \
23
- -c " duplicity remove-older-than 6M ${UPLOADS_DST} "
23
+ -c " duplicity remove-all-but-n-full 3 --force ${UPLOADS_DST} "
24
24
;;
25
25
' mysql-backups' )
26
26
PASSPHRASE=" $PASSPHRASE " su mystamps 2>&1 \
27
27
-c " ${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST} "
28
- PASSPHRASE= " $PASSPHRASE " su mystamps 2>&1 \
29
- -c " duplicity remove-older-than 6M ${MYSQL_BACKUPS_DST} "
28
+ su mystamps 2>&1 \
29
+ -c " duplicity remove-all-but-n-full 3 --force ${MYSQL_BACKUPS_DST} "
30
30
;;
31
31
* )
32
32
echo 2>&1 " Usage: $( dirname " $0 " ) (uploads|mysql-backups)"
You can’t perform that action at this time.
0 commit comments