fixup rclone org data sync -- needs to be within termux app data to avoid mtime clock skew issues
This commit is contained in:
parent
51f1118ee5
commit
d01fe96654
|
@ -5,7 +5,8 @@
|
||||||
#export RC_DEBUG="-P --dry-run"
|
#export RC_DEBUG="-P --dry-run"
|
||||||
|
|
||||||
# org storage locations
|
# org storage locations
|
||||||
export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
#export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
||||||
|
export LOCAL_ORG="/data/data/com.termux/files/home/org/"
|
||||||
export NC_ORG="nc-personal:/org/"
|
export NC_ORG="nc-personal:/org/"
|
||||||
|
|
||||||
# rclone common flags/switches
|
# rclone common flags/switches
|
||||||
|
|
|
@ -5,11 +5,12 @@
|
||||||
#export RC_DEBUG="-P --dry-run"
|
#export RC_DEBUG="-P --dry-run"
|
||||||
|
|
||||||
# org storage locations
|
# org storage locations
|
||||||
export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
#export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
||||||
|
export LOCAL_ORG="/data/data/com.termux/files/home/org/"
|
||||||
export NC_ORG="nc-personal:/org/"
|
export NC_ORG="nc-personal:/org/"
|
||||||
|
|
||||||
# rclone common flags/switch
|
# rclone common flags/switch
|
||||||
export RC_COMMON="--modify-window=1s --fast-list --human-readable -P --max-depth=2"
|
export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable -P"
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
# get a wake lock so we dont get background killed
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
#!/data/data/com.termux/files/usr/bin/sh
|
|
||||||
|
|
||||||
# debugging
|
|
||||||
#echo $1
|
|
||||||
#export RC_DEBUG="-P --dry-run"
|
|
||||||
|
|
||||||
# org storage locations
|
|
||||||
export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
|
||||||
export NC_ORG="nc-personal:/org/"
|
|
||||||
|
|
||||||
# rclone common flags/switches
|
|
||||||
export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable -P"
|
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
|
||||||
|
|
||||||
# sync org data to local device (pull down outstanding changes, if any)
|
|
||||||
echo "starting rclone from nextcloud -> local storage"
|
|
||||||
/data/data/com.termux/files/usr/bin/rclone sync \
|
|
||||||
$RC_COMMON $RC_DEBUG \
|
|
||||||
--filter "+ /Documents/Resume/**" \
|
|
||||||
--filter "- archivebox" \
|
|
||||||
--filter "- /Attic/" \
|
|
||||||
--filter "- /Documents/" \
|
|
||||||
$NC_ORG $LOCAL_ORG
|
|
||||||
|
|
||||||
# pause to review rclone output
|
|
||||||
#echo "press enter to continue"
|
|
||||||
#read junkvar
|
|
||||||
|
|
||||||
# release wake lock
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-unlock
|
|
||||||
|
|
||||||
echo "Press enter to exit"
|
|
||||||
read junkvar
|
|
Loading…
Reference in a new issue