summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-11-30 03:44:38 +0000
committerXiao Pan <gky44px1999@gmail.com>2023-11-30 03:44:38 +0000
commit73cb7c0f8f6959229e9e328ed936df8350abb987 (patch)
tree6ae428e11f44675b9378c48dfd91b3828ac5d6b7 /home
parentae6026c90bc54c56ed440f2c8ea3ad1314621b3c (diff)
update
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/upd1
-rw-r--r--home/xyz/.ssh/config4
2 files changed, 5 insertions, 0 deletions
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