You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although ideally a parameter that outputs if there's any transfer going on/files queued in cache that could be parsed in a script to check before unmounting or rebooting the server would be ideal!
Stuff still being left in the cache on quitting Rclone is just a matter of reclaiming disc space, the bigger issue IMO is making sure that changes are committed to the remote, so that Rclone isn't terminated before changes have had a chance to be written.
@mstgrv It's not about read cache. It's about what's in the write cache (VFS queue). Not sure how gracefully the interruption and resuming of the upload from the queue (restarting the rclone process with data still in queue) is currently handled (which is of course important) but it's also important to be able to see if the queue has been successfully transferred to the remote for use cases where the delivery of files is time critical (eg I need to know if the queue has finished before I go into downtime for upgrading the server/upgrade linux version/even just a reboot to a new kernel that may cause additional downtime when the files need to be there now and not in possibly two hours).
Currently --stats is all you can use for this purpose. An rclone parameter that would output the status of the queue in a clear way on stdout, so it could also be scripted, would be ideal.
Activity
mstgrv commentedon Apr 5, 2018
Stuff still being left in the cache on quitting Rclone is just a matter of reclaiming disc space, the bigger issue IMO is making sure that changes are committed to the remote, so that Rclone isn't terminated before changes have had a chance to be written.
danielloader commentedon Apr 5, 2018
In addition to that it'd be nice if vfs and cache rc commands had a vfs/queue and cache/queue option to spit out what's left to upload and when.
Nodens- commentedon Apr 6, 2018
@mstgrv It's not about read cache. It's about what's in the write cache (VFS queue). Not sure how gracefully the interruption and resuming of the upload from the queue (restarting the rclone process with data still in queue) is currently handled (which is of course important) but it's also important to be able to see if the queue has been successfully transferred to the remote for use cases where the delivery of files is time critical (eg I need to know if the queue has finished before I go into downtime for upgrading the server/upgrade linux version/even just a reboot to a new kernel that may cause additional downtime when the files need to be there now and not in possibly two hours).
Currently
--statsis all you can use for this purpose. An rclone parameter that would output the status of the queue in a clear way on stdout, so it could also be scripted, would be ideal.7 remaining items
Max-Sum commentedon Sep 26, 2022
Any update on this?
baurmatt commentedon Apr 13, 2023
I'm using the following code as workaround:
Max-Sum commentedon May 16, 2023
Thank you. I will use this workaround until flushing implemented.
Max-Sum commentedon May 17, 2023
This workaround fails when:
I made a similar workaround using vfs/stats.
Sorry for the messy regex. The environment of rclone docker image doesn't have jq. This is the only way I found.
baurmatt commentedon May 22, 2023
Thanks for sharing! :) I think the
jqequivalent would be:ykuyo commentedon Nov 23, 2024
What about using
rclone sync?