We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f117cf2 commit 5c20f7cCopy full SHA for 5c20f7c
vagrant/provisioning/roles/mystamps-backup/templates/remote-backup.sh
@@ -10,16 +10,12 @@ DUPLICITY_CMD='duplicity --no-compression'
10
11
case "${1:-}" in
12
'uploads')
13
- su \
14
- mystamps \
15
- -c "${DUPLICITY_CMD} --name=uploads --no-encryption /data/uploads ${UPLOADS_DST}" \
16
- 2>&1
+ su mystamps 2>&1 \
+ -c "${DUPLICITY_CMD} --name=uploads --no-encryption /data/uploads ${UPLOADS_DST}"
17
;;
18
'mysql-backups')
19
- PASSPHRASE="$PASSPHRASE" su \
20
21
- -c "${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST}" \
22
+ PASSPHRASE="$PASSPHRASE" su mystamps 2>&1 \
+ -c "${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST}"
23
24
*)
25
echo 2>&1 "Usage: $(dirname "$0") (uploads|mysql-backups)"
0 commit comments