Skip to content

Commit 683b224

Browse files
committed
fix(remote-backup.sh): specify passphrase to duplicity remove-older-than.
The passphrase is needed also for remove-older-than: Synchronizing remote metadata to local cache... /usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal. passwd = fallback_getpass(prompt, stream) Warning: Password input may be echoed. GnuPG passphrase for decryption: Traceback (most recent call last): File "/usr/bin/duplicity", line 1532, in <module> with_tempdir(main) File "/usr/bin/duplicity", line 1526, in with_tempdir fn() File "/usr/bin/duplicity", line 1380, in main do_backup(action) File "/usr/bin/duplicity", line 1401, in do_backup sync_archive(decrypt) File "/usr/bin/duplicity", line 1180, in sync_archive globals.gpg_profile.passphrase = get_passphrase(1, "sync") File "/usr/bin/duplicity", line 198, in get_passphrase pass1 = getpass_safe(_("GnuPG passphrase for decryption:") + " ") File "/usr/bin/duplicity", line 93, in getpass_safe return getpass.getpass(message) File "/usr/lib/python2.7/getpass.py", line 83, in unix_getpass passwd = fallback_getpass(prompt, stream) File "/usr/lib/python2.7/getpass.py", line 118, in fallback_getpass return _raw_input(prompt, stream) File "/usr/lib/python2.7/getpass.py", line 135, in _raw_input raise EOFError EOFError Correction for 0a66856 commit. [skip ci]
1 parent c02aab6 commit 683b224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ case "${1:-}" in
2525
'mysql-backups')
2626
PASSPHRASE="$PASSPHRASE" su mystamps 2>&1 \
2727
-c "${DUPLICITY_CMD} --name=mysql-backups /data/backups ${MYSQL_BACKUPS_DST}"
28-
su mystamps 2>&1 \
28+
PASSPHRASE="$PASSPHRASE" su mystamps 2>&1 \
2929
-c "duplicity remove-older-than 6M ${MYSQL_BACKUPS_DST}"
3030
;;
3131
*)

0 commit comments

Comments
 (0)