diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-11-29 23:49:00 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-11-29 23:49:00 -0800 |
commit | eee5a385f2c80cb83c0f05a8f150861b2e1a0a26 (patch) | |
tree | c62268ece80eed627ecb20522cf62c3fda8a460a /home/xyz/.local/bin/upd | |
parent | 48c82a461c014d75655f128db85abbf0cb361e3e (diff) |
update
Diffstat (limited to 'home/xyz/.local/bin/upd')
-rwxr-xr-x | home/xyz/.local/bin/upd | 4 |
1 files changed, 3 insertions, 1 deletions
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 () { |