File tree 1 file changed +5
-1
lines changed
vagrant/provisioning/roles/mystamps-backup/templates
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,20 @@ set -o errexit
6
6
UPLOADS_DST=' {{ uploads_target_url }}'
7
7
MYSQL_BACKUPS_DST=' {{ mysql_backups_target_url }}'
8
8
PASSPHRASE=' {{ gpg_passphrase }}'
9
- DUPLICITY_CMD=' duplicity --no-compression'
9
+ DUPLICITY_CMD=' duplicity --no-compression --full-if-older-than 1M '
10
10
11
11
case " ${1:- } " in
12
12
' uploads' )
13
13
su mystamps 2>&1 \
14
14
-c " ${DUPLICITY_CMD} --name=uploads --no-encryption /data/uploads ${UPLOADS_DST} "
15
+ su mystamps 2>&1 \
16
+ -c " duplicity remove-older-than 6M ${UPLOADS_DST} "
15
17
;;
16
18
' mysql-backups' )
17
19
PASSPHRASE=" $PASSPHRASE " su mystamps 2>&1 \
18
20
-c " ${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST} "
21
+ su mystamps 2>&1 \
22
+ -c " duplicity remove-older-than 6M ${MYSQL_BACKUPS_DST} "
19
23
;;
20
24
* )
21
25
echo 2>&1 " Usage: $( dirname " $0 " ) (uploads|mysql-backups)"
You can’t perform that action at this time.
0 commit comments