summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-03-08 19:59:12 -0800
committerXiao Pan <gky44px1999@gmail.com>2024-03-08 19:59:12 -0800
commite0533281266e33ed225e0e0ccce60a8be6966d49 (patch)
tree393718015a9a069f94680c2e7b74e26c0ddbcc48
parent8315cf5f45af684681cbb86b930802227cc6ff91 (diff)
feat: duplicity backup to ia
-rwxr-xr-xsh/upd1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/upd b/sh/upd
index 3bd69e1..9263f32 100755
--- a/sh/upd
+++ b/sh/upd
@@ -75,6 +75,7 @@ backup () {
# --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"
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@xyzka.kyun.li//home/xyz/backup/$backup_branch"
fi
}