diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2025-11-13 06:39:24 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2025-11-13 06:39:24 +0800 |
| commit | b8a49fba50cf39dd1cf0e39e131d3df39482b782 (patch) | |
| tree | 5f4c48b83aa83e15cfeea71c29719d7cefbb35dd /sh/upd | |
| parent | ca5c077434305423a7e6d0a845b71c0f07ee0448 (diff) | |
Diffstat (limited to 'sh/upd')
| -rwxr-xr-x | sh/upd | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
