summaryrefslogtreecommitdiff
path: root/sh/upd
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2026-04-25 22:09:20 +0800
committerXiao Pan <xyz@flylightning.xyz>2026-04-25 22:09:20 +0800
commit723b6629fb734b7ed46e62eb090846505b607c05 (patch)
treef5457ca7b7b9d198fcddeac1c7fb802f6313df05 /sh/upd
parent208c1f9d14fa8d85967dc518577d2f35a41b9068 (diff)
internet upload slow, so no duplicity full backup for now
Diffstat (limited to 'sh/upd')
-rwxr-xr-xsh/upd6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/upd b/sh/upd
index 9bc51ab..78a8a8b 100755
--- a/sh/upd
+++ b/sh/upd
@@ -93,10 +93,10 @@ backup () {
# public key decryption failed: No passphrase given" and "gpg:
# decryption failed: No passphrase given", not sure why, maybe it is a
# bug. I decided to workaround it with --use-agent for now
- sudo duplicity --ssh-askpass --use-agent --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --full-if-older-than 2Y --include /etc/.cfgs --include /root/archive --include /root/programs --include-filelist "/home/xyz/.config/myconf/upd_rsync_files" --exclude / / "sftp://xyz@ib.flylightning.xyz//home/xyz/backup/master"
+ sudo duplicity --ssh-askpass --use-agent --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --include /etc/.cfgs --include /root/archive --include /root/programs --include-filelist "/home/xyz/.config/myconf/upd_rsync_files" --exclude / / "sftp://xyz@ib.flylightning.xyz//home/xyz/backup/master"
# duplicity backup to ca
- sudo duplicity --ssh-askpass --use-agent --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --full-if-older-than 2Y --include /etc/.cfgs --include /root/archive --include /root/programs --include-filelist "/home/xyz/.config/myconf/upd_rsync_files" --exclude / / "sftp://xyz@ca.flylightning.xyz//home/xyz/backup/master"
+ sudo duplicity --ssh-askpass --use-agent --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --include /etc/.cfgs --include /root/archive --include /root/programs --include-filelist "/home/xyz/.config/myconf/upd_rsync_files" --exclude / / "sftp://xyz@ca.flylightning.xyz//home/xyz/backup/master"
fi
if [ "$hostname" = xyzpp ]; then
@@ -130,7 +130,7 @@ backup () {
# 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"
+ sudo --preserve-env=GPG_TTY duplicity --ssh-askpass --use-agent --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --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
# satisfied: pp files in ~/.config/myconf/upd_rsync_files are backed up
# in pp, insp, and ib duplicity; pp /etc/.cfgs is backed up in pp, insp