summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-06-19 17:32:13 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-06-19 17:32:13 -0700
commita631bb51b5161f86710ea84cb21b61f01d1eeb3b (patch)
tree17869c854be4de2f22cbe5bcff6d3011ff8cd4e4
parent769328acc39a5c2908f0c8febe57c37b630f4a7f (diff)
fix: upd duplicity --use-agent gpg key maybe timeout with do full backup, not using it now
-rwxr-xr-xsh/upd5
1 files changed, 2 insertions, 3 deletions
diff --git a/sh/upd b/sh/upd
index a305eb2..048b0e5 100755
--- a/sh/upd
+++ b/sh/upd
@@ -71,9 +71,8 @@ backup () {
# Need // for absolute path, see manpage URL FORMAT section. If not use //, will store to /home/xyz/home/xyz/...
# --files-from has a bug, this bug makes source url that is / not working while /home works, more see vq notes
# --use-agent not working when ssh to pp and insp, works on insp, not sure why
- use_agent=
- [ "$hostname" = xyzinsp ] && use_agent='--use-agent'
- sudo duplicity --ssh-askpass $use_agent --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --full-if-older-than 2Y --include /etc/.cfgs --include-filelist "/home/xyz/.config/myconf/upd_rsync_files" --exclude / / "sftp://xyz@ia.flylightning.xyz//home/xyz/backup/$backup_branch"
+ # --use-agent maybe timeout on gpg key and failed when do full backup, maybe due to key stored in gpg agent timeout, so I'm not using --use-agent on insp now
+ sudo duplicity --ssh-askpass --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --full-if-older-than 2Y --include /etc/.cfgs --include-filelist "/home/xyz/.config/myconf/upd_rsync_files" --exclude / / "sftp://xyz@ia.flylightning.xyz//home/xyz/backup/$backup_branch"
fi
}