From 73cb7c0f8f6959229e9e328ed936df8350abb987 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 30 Nov 2023 03:44:38 +0000 Subject: update --- home/xyz/.local/bin/upd | 1 + home/xyz/.ssh/config | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index e262aec3..f6f1612f 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -7,6 +7,7 @@ all () { } backup () { + rsync -avPRr --delete ka:/home/xyz/.config/qBittorrent :/home/xyz/.local/share/qBittorrent "$HOME/backup/ka" # --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 --include /home/xyz/.config/qBittorrent --include /home/xyz/.local/share/qBittorrent --exclude / / sftp://xyz@xyzka.kyun.li//home/xyz/backup/studio } diff --git a/home/xyz/.ssh/config b/home/xyz/.ssh/config index ced25edf..ed481624 100644 --- a/home/xyz/.ssh/config +++ b/home/xyz/.ssh/config @@ -2,3 +2,7 @@ # another approach is to put it under `HOST *` # https://unix.stackexchange.com/a/577490/459013 AddKeysToAgent yes + +Host ka + Hostname xyzka.kyun.li + User xyz -- cgit v1.2.3-70-g09d2