diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-05-31 19:58:47 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-05-31 19:58:47 -0700 |
commit | e443b463830875c94816d5822522d5aca6f29d51 (patch) | |
tree | df708f6b5358da143db73a16307b4b911203fb1b /home | |
parent | cda806f1e8230a6ef81dd0e9a89f315eb30eadb6 (diff) |
upd no usb rsync backup currently
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.config/myconf/upd_rsync_files | 14 | ||||
-rwxr-xr-x | home/xyz/.local/bin/upd | 32 |
2 files changed, 16 insertions, 30 deletions
diff --git a/home/xyz/.config/myconf/upd_rsync_files b/home/xyz/.config/myconf/upd_rsync_files deleted file mode 100644 index f7e62551..00000000 --- a/home/xyz/.config/myconf/upd_rsync_files +++ /dev/null @@ -1,14 +0,0 @@ -home/xyz/.bitmonero/wallets -home/xyz/.cache/nsxiv -home/xyz/.config/qBittorrent -home/xyz/.config/qmmp/qmmp.conf -home/xyz/.local/share/qBittorrent -home/xyz/.local/share/sdcv_history -home/xyz/.password-store -home/xyz/archive -home/xyz/documents -home/xyz/music -home/xyz/pictures -home/xyz/programs -home/xyz/test -home/xyz/videos diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 10f1d853..e129c02e 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -7,7 +7,7 @@ all () { #qb refl #music - usb + #usb #xmr } @@ -95,19 +95,19 @@ refl () { sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country ro --protocol https --delay 1 --latest 20 --score 20 --fastest 10 } -usb () { - cfg -l push usb - cfg -s push - git --git-dir="$XDG_DOCUMENTS_DIR/notes/.git/" --work-tree="$XDG_DOCUMENTS_DIR/notes/" push usb - git --git-dir="$HOME/programs/reminders/.git/" --work-tree="$HOME/programs/reminders/" push usb - - #rsync -navPR --delete ~/archive ~/documents ~/downloads ~/music ~/pictures ~/programs ~/test ~/videos ~/.local/share/stardict/dic ~/.local/share/qBittorrent ~/.local/share/sdcv_history ~/.cache/nsxiv ~/.config/qBittorrent ~/.bitmonero/wallets ~/.password-store /run/media/xyz/bd0 - # --files-from make -a not imply -r, so need to specify explicitly - rsync -avPRr --delete --files-from="$XDG_CONFIG_HOME/myconf/upd_rsync_files" / /run/media/xyz/bd0 - - # not sure if useful or not - sync -} +#usb () { +# cfg -l push usb +# cfg -s push +# git --git-dir="$XDG_DOCUMENTS_DIR/notes/.git/" --work-tree="$XDG_DOCUMENTS_DIR/notes/" push usb +# git --git-dir="$HOME/programs/reminders/.git/" --work-tree="$HOME/programs/reminders/" push usb +# +# #rsync -navPR --delete ~/archive ~/documents ~/downloads ~/music ~/pictures ~/programs ~/test ~/videos ~/.local/share/stardict/dic ~/.local/share/qBittorrent ~/.local/share/sdcv_history ~/.cache/nsxiv ~/.config/qBittorrent ~/.bitmonero/wallets ~/.password-store /run/media/xyz/bd0 +# # --files-from make -a not imply -r, so need to specify explicitly +# rsync -avPRr --delete --files-from="$XDG_CONFIG_HOME/myconf/upd_rsync_files" / /run/media/xyz/bd0 +# +# # not sure if useful or not +# sync +#} #xmr () { # # use cd to workaround monero-blockchain-export.log log file save in current dir? issue, haven't tested @@ -124,7 +124,7 @@ usb () { if [ $# -eq 0 ]; then fast else - while getopts acfmpru opt; do + while getopts acfmpr opt; do case $opt in a)all;; c)clean;; @@ -135,7 +135,7 @@ else p)pac;; #q)qb;; r)refl;; - u)usb;; + #u)usb;; #x)xmr;; \?)exit 1;; esac |