I have a situation where occasionally my uploads exceed the space available on my cloud storage. In that event, I will end up with (obviously) a destination that does not include all files in my source.
As of now, the best way I have come up with to determine what got uploaded and what didn't is just to mount the destination with rclone mount to ~/remote and do:
ls ~/local > local.txt
ls ~/remote > remote.txt
diff local.txt remote.txt
Then I can go through manually and figure out what still needs to be moved. It's tedious and I hate it.
It would be great if I could have rclone figure out what was left to be uploaded (i.e. at what point in my transfer I ran out of space) and then push only what was left to a different cloud storage bucket.
There is probably a way to just mount the source and destination, and pipe the output of diff to cp, but again, if I run out of space I'm just going to get read/write errors so that is not a clean solution.
What do you guys recommend I do differently to accomplish this (if anything)?