diff options
| author | xyz <gky44px1999@gmail.com> | 2022-06-09 18:52:41 -0700 | 
|---|---|---|
| committer | xyz <gky44px1999@gmail.com> | 2022-06-09 18:52:41 -0700 | 
| commit | 75a07a21edc89265114668c3908c122c89b6e785 (patch) | |
| tree | fe03e5c13353b283a2e19cf50501397ccd4761c8 /home | |
| parent | 16fc14513bea26928b8d216c9f080fd3de72c457 (diff) | |
refactor
Diffstat (limited to 'home')
| -rwxr-xr-x | home/xyz/.local/bin/upd | 15 | 
1 files changed, 11 insertions, 4 deletions
| diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index f9fba6d6..8ce4d974 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -2,12 +2,13 @@  all () {  	fast -	usb  	qb  	#kg  	#ncm  	refl  	#gall +	usb +	xmr  }  clean () { @@ -109,9 +110,14 @@ usb () {  	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 -avPR --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/BAKDRI/ -	monero-blockchain-export --output-file /run/media/xyz/BAKDRI/archive/monero/blockchain.raw +	rsync -avPR --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/BAKDRI + +	# not sure if useful or not +	sync +} +xmr () { +	monero-blockchain-export --output-file /run/media/xyz/BAKDRI/archive/monero/blockchain.raw  	# not sure if useful or not  	sync  } @@ -119,7 +125,7 @@ usb () {  if [ $# -eq 0 ]; then  	fast  else -	while getopts acfgjkmnpqru opt; do +	while getopts acfgjkmnpqrux opt; do  		case $opt in  			a)all;;  			c)clean;; @@ -133,6 +139,7 @@ else  			q)qb;;  			r)refl;;  			u)usb;; +			x)xmr;;  			\?)exit 1;;  		esac  	done | 
