diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-11-30 02:53:01 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-11-30 02:53:01 +0000 |
commit | ae6026c90bc54c56ed440f2c8ea3ad1314621b3c (patch) | |
tree | 37fcf2eb30f96143151174333e8325619169addb /home | |
parent | 5b1b11bb908d6b5b314a6891b97f5baf27d2ad18 (diff) |
backup cfgs
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.config/myconf/pacman_Qqne | 1 | ||||
-rwxr-xr-x | home/xyz/.local/bin/upd | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/home/xyz/.config/myconf/pacman_Qqne b/home/xyz/.config/myconf/pacman_Qqne index 40d2a2e3..29203940 100644 --- a/home/xyz/.config/myconf/pacman_Qqne +++ b/home/xyz/.config/myconf/pacman_Qqne @@ -5,6 +5,7 @@ bash-completion dash ddclient devtools +duplicity fio fwupd fzf diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 92e5e478..e262aec3 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -6,6 +6,11 @@ all () { refl } +backup () { + # --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 +} + clean () { paru -aSc --noconfirm } @@ -14,6 +19,7 @@ clean () { fast () { pac misc + backup } misc () { @@ -55,9 +61,10 @@ refl () { if [ $# -eq 0 ]; then fast else - while getopts acfmpr opt; do + while getopts abcfmpr opt; do case $opt in a)all;; + b)backup;; c)clean;; f)fast;; m)misc;; |