I'm using google drive as remote. I want to move files to my google drive remote, but before removing on the local I would like to wait for x minutes (so mergerfs has time to find the new file on remote). Is this possible?
I made a bash script that uses rclone copy, then sleeps 2 minutes and uses rm -rf to remove the local files. However I'm having problems when sonarr/radarr moves files to my local directory while the bash script is sleeping, they will also be removed even though they are not in the remote.
You can just tune down the default polling to 10 seconds and use rclone move instead. It'll pick up the change in 10 seconds and pretty much, nothing will miss that too much.
Thanks, this sounds like the way to go. I tried it with this command: /usr/bin/rclone copy --files-from list_of_files.txt /home/appbox/Media/local crypt: --drive-stop-on-upload-limit --fast-list -vvv --dry-run --verbose
The file contains for example: "Movie/Thor The Dark World (2013)/Thor The Dark World (2013) Bluray-1080p.mp4"
But when I run it I get: 2021/03/11 13:13:52 DEBUG : Movie: Excluded
Very interesting. I've never used this functionality personally (but plan to soon) and I can replicate your error quite easily with some fake files and very simple --files-from:
Yea I get the exact same result.. I'm not sure why it's excluding the file/directories. Do you know if there is any examples on how to use --files-from? I tried to look for a good example but didn't find any
timevortex@gallifrey:~/rclone-test/src$ find . -type f | sed 's/^\.\///g' > /tmp/file_list_for_rclone.txt
timevortex@gallifrey:~/rclone-test/src$ cat /tmp/file_list_for_rclone.txt
root_file_1
sub folder 1/file11.txt
sub folder 1/file10.txt
sub folder 2/file20.txt
sub folder 2/file21.txt
sub folder 2/file22.txt
timevortex@gallifrey:~/rclone-test/src$ rclone copy ~/rclone-test/src/ ~/rclone-test/dst/ --files-from /tmp/file_list_for_rclone.txt -vvv --dry-run --dump filters
--- start filters ---
--- File filter rules ---
--- Directory filter rules ---
--- end filters ---
2021/03/11 15:27:32 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "copy" "/home/timevortex/rclone-test/src/" "/home/timevortex/rclone-test/dst/" "--files-from" "/tmp/file_list_for_rclone.txt" "-vvv" "--dry-run" "--dump" "filters"]
2021/03/11 15:27:32 DEBUG : Creating backend with remote "/home/timevortex/rclone-test/src/"
2021/03/11 15:27:32 DEBUG : Using config file from "/home/timevortex/.config/rclone/rclone.conf"
2021/03/11 15:27:32 DEBUG : Creating backend with remote "/home/timevortex/rclone-test/dst/"
2021/03/11 15:27:32 NOTICE: root_file_1: Skipped copy as --dry-run is set
2021/03/11 15:27:32 NOTICE: sub folder 2/file20.txt: Skipped copy as --dry-run is set
2021/03/11 15:27:32 NOTICE: sub folder 2/file21.txt: Skipped copy as --dry-run is set
2021/03/11 15:27:32 NOTICE: sub folder 1/file11.txt: Skipped copy as --dry-run is set
2021/03/11 15:27:32 DEBUG : Local file system at /home/timevortex/rclone-test/dst/: Waiting for checks to finish
2021/03/11 15:27:32 NOTICE: sub folder 2/file22.txt: Skipped copy as --dry-run is set
2021/03/11 15:27:32 NOTICE: sub folder 1/file10.txt: Skipped copy as --dry-run is set
2021/03/11 15:27:32 DEBUG : Local file system at /home/timevortex/rclone-test/dst/: Waiting for transfers to finish
2021/03/11 15:27:32 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Transferred: 6 / 6, 100%
Elapsed time: 0.0s
2021/03/11 15:27:32 DEBUG : 2 go routines active
timevortex@gallifrey:~/rclone-test/src$