From a793f125d6b3c5bb8aade147e62256526aa7dc00 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 29 Nov 2023 19:03:13 -0800 Subject: update --- home/xyz/.local/bin/upd | 9 ++++++++- 1 file changed, 8 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 daeab621..04009440 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -6,6 +6,11 @@ all () { clean } +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 --exclude / / sftp://xyz@xyzka.kyun.li//home/xyz/backup/pp +} + clean () { cd "$HOME/.mozilla/firefox/xxxxxxxx.fly/prefsjs_backups" || exit # https://stackoverflow.com/a/34862475/9008720 @@ -25,6 +30,7 @@ clean () { fast () { pac misc + backup } userjs () { @@ -73,9 +79,10 @@ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type not if [ $# -eq 0 ]; then fast else - while getopts acfjmp opt; do + while getopts abcfjmp opt; do case $opt in a)all;; + b)backup;; c)clean;; f)fast;; j)userjs;; -- cgit v1.2.3-70-g09d2