summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/upd
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-02-23 22:08:07 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-02-23 22:08:07 -0800
commitda5d12da619b7ef845030886f31ec813da00650a (patch)
treeb1da1d41327eb00245d9d5fedded87b4c4df8cee /home/xyz/.local/bin/upd
parent2c4d292a9fdaf8c318f0316edb057621debc2db7 (diff)
more change for pinephone
Diffstat (limited to 'home/xyz/.local/bin/upd')
-rwxr-xr-xhome/xyz/.local/bin/upd22
1 files changed, 11 insertions, 11 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd
index e56a509c..f2ea2565 100755
--- a/home/xyz/.local/bin/upd
+++ b/home/xyz/.local/bin/upd
@@ -5,7 +5,7 @@ all () {
qb
refl
usb
- xmr
+ #xmr
}
clean () {
@@ -98,24 +98,24 @@ 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
+ rsync -avPRr --delete --files-from="$XDG_CONFIG_HOME/myconf/upd_rsync_files" / /run/media/xyz/bd0/pp
# 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
- cd "$HOME/.bitmonero" || exit
- monero-blockchain-export --output-file /run/media/xyz/bd0/archive/monero/blockchain.raw
- # 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
+# cd "$HOME/.bitmonero" || exit
+# monero-blockchain-export --output-file /run/media/xyz/bd0/archive/monero/blockchain.raw
+# # not sure if useful or not
+# sync
+#}
if [ $# -eq 0 ]; then
fast
else
- while getopts acfjmpqrux opt; do
+ while getopts acfjmpqru opt; do
case $opt in
a)all;;
c)clean;;
@@ -126,7 +126,7 @@ else
q)qb;;
r)refl;;
u)usb;;
- x)xmr;;
+ #x)xmr;;
\?)exit 1;;
esac
done