summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/upd5
1 files changed, 3 insertions, 2 deletions
diff --git a/sh/upd b/sh/upd
index e8a6d99..133ba1c 100755
--- a/sh/upd
+++ b/sh/upd
@@ -126,8 +126,9 @@ backup () {
# master | ... | xdotool ...`, will have issues of timeout or it shows
# I input wrong password, I need to typing password manually instead,
# not sure why, maybe due to xdotool input too fast. It can be
- # workarounded by add gpg key to agent before running duplicity, this
- # works because my root and xyz user use the same gpg key.
+ # workarounded by add gpg key to agent before running duplicity,
+ # somehow doing this with xdotool does not have issues. This works
+ # because my root and xyz user use the same gpg key.
echo | sudo --preserve-env=GPG_TTY gpg -s >/dev/null
sudo --preserve-env=GPG_TTY 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@ib.flylightning.xyz//home/xyz/backup/pp"
# pp no need duplicity backup to ca, because 321 backup rule is already