Command Chaining

No. im mounting them and then using JUST the mounts. I never touch the remotes directly except THROUGH the mounts.

So previously I had a number of commands running one after another like this (removed extra shell stuff)

/data/Media1 is a LOCAL FS.
/data/Media2 is a GDCRYPT remote mount
/data/MediaG is a UNION of /data/Media1 and the /data/Media2

BEFORE:

rclone rmdirs riosgd-cryptp:Media"

rclone copy “/data/Media1” “riosgd-cryptp:Media”

rclone sync “/data/MediaG” “riosgd-cryptp:Media”

rsync --inplace -rlxi --checksum -n --out-format="%n"
–include=".nfo"
–include="
/"
–exclude="*"
/data/Media1/Videos/ /data/Media2/Videos/ | egrep -v “/$” |tee $TMPFILE

rclone
–files-from=$TMPFILE
copy -v “/data/Media1/Videos/” “riosgd-cryptp:Media/Videos”

Now i’ve converted them to use the mount that represents that remote because that has a cache. So I do the following and i’ve increased my cache to 7 days. By doing ALL my work against the mounts intead of directly, I have no need to refresh the cache. The cache will be updated as it does the work and will always be correct.

AFTER:

rclone rmdirs /data/Media2

rclone copy “/data/Media1” /data/Media2

rclone sync “/data/MediaG” /data/Media2

rclone --include=*.nfo --checksum copy /data/Media1/Videos /data/Media2/Videos

My batch time is so fast now since it can do size-only comparisons almost instantaneously. I actually do all the above TWICE. One for ACD and one for GD but the code is almost hte same.