Hi, I'm a long-time user of rclone. I was using it to sync a large number of photos with Google Drive in a Windows 11 virtual machine. It was working great. Then I shut the VM down without first using Ctrl-C to abort the rclone job. Rclone had transferred 600 out of about 1,830 files.
When I restarted the job today, rclone said there was nothing to transfer — apparently believing that the 1,200 or so files that it hadn't copied to Google Drive were in fact there already. I used the check feature (checking filesizes only to save tiem) and it "saw" them, miraculously, on Google Drive. I used the selfupdate feature to update rclone but had the same problem.
There must be some kind of local caching going on, anyone know if that's a feature? I was able to solve my problem by renaming folders and starting the transfer again.
Thanks for the reply. No template that I noticed in this category. My question is more of a "how does rclone handle caching, which is of academic interest to me" rather than "help help please fix my problem" (for which I do have a workaround, as noted in my original post.)
Updated to add: I just shutdown the host computer. The VM kept going (if that makes sense).
yes, total sense, that is why i asked, that is what i thought happened.
by default, hyperv will re-start the vm automatically, after the host boots. automatic start action is set to automatically start if it was running when the service stopped
so when you re-started the host machine, hyperv resumed the vm, and then rclone finished its work.
Thanks. Yes it makes sense, especially because the VM was running for a little while before I connected to it today, long enough for rclone to transfer over the rest of the files. BUT according to Google Drive's web interface, they never arrived. If this is expected behavior based on whatever caching system rclone uses then OK; if not, please let me know, so I can attempt to reproduce with logs and file a bug report.
Today I tried naming in the command the specific subfolder that had the discrepancy in the number of files, without success. Having renamed folders, I am now running this above command again, and it is working.