summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin')
-rwxr-xr-xhome/xyz/.local/bin/upd9
1 files changed, 8 insertions, 1 deletions
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;;