File tree 1 file changed +3
-2
lines changed
vagrant/provisioning/roles/mystamps-backup/templates
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,19 @@ 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
10
10
11
case " ${1:- } " in
11
12
' uploads' )
12
13
su \
13
14
mystamps \
14
- -c " duplicity --name=uploads --no-compression --no-encryption /data/uploads ${UPLOADS_DST} " \
15
+ -c " ${DUPLICITY_CMD} --name=uploads --no-encryption /data/uploads ${UPLOADS_DST} " \
15
16
2>&1
16
17
;;
17
18
' mysql-backups' )
18
19
PASSPHRASE=" $PASSPHRASE " su \
19
20
mystamps \
20
- -c " duplicity --name=mysql-backups --no-compression /data/backups ${MYSQL_BACKUPS_DST} " \
21
+ -c " ${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST} " \
21
22
2>&1
22
23
;;
23
24
* )
You can’t perform that action at this time.
0 commit comments