From e0533281266e33ed225e0e0ccce60a8be6966d49 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 8 Mar 2024 19:59:12 -0800 Subject: feat: duplicity backup to ia --- sh/upd | 1 + 1 file changed, 1 insertion(+) 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 } -- cgit v1.2.3-70-g09d2