From eee5a385f2c80cb83c0f05a8f150861b2e1a0a26 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 29 Nov 2023 23:49:00 -0800 Subject: update --- home/xyz/.local/bin/upd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'home/xyz/.local/bin/upd') diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 04009440..86e7581a 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -7,8 +7,10 @@ all () { } backup () { + # --files-from make -a not imply -r, so need to specify explicitly + rsync -avPRr --delete --files-from="$XDG_CONFIG_HOME/myconf/upd_rsync_files" / studio:/home/xyz/backup/pp # --use-agent not working, works on insp, not sure why - sudo duplicity --ssh-askpass --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --full-if-older-than 1Y --include /etc/.cfgs --exclude / / sftp://xyz@xyzka.kyun.li//home/xyz/backup/pp + sudo duplicity --ssh-askpass --encrypt-key 9790577D2BE328D46838117ED3F54FE03F3C68D6 --sign-key 05899270DF25BB1EEDF57BE824F769E5D08C9E9A --full-if-older-than 1Y --include /etc/.cfgs --include-filelist "$XDG_CONFIG_HOME/myconf/upd_rsync_files" --exclude / / sftp://xyz@xyzka.kyun.li//home/xyz/backup/pp } clean () { -- cgit v1.2.3-70-g09d2