# FR: RC VFS command to upload files waiting for write-back

**URL:** <https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343>\
**Category:** Feature\
**Created:** [June 27, 2023, 6:32pm UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343 "2023-06-27T18:32:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwink3101](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@jwink3101](https://forum.rclone.org/u/jwink3101)\
**Post date:** [June 27, 2023, 6:32pm UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343/1 "2023-06-27T18:32:16Z")

</div>

I am trying to use a mount where during the session, I am modifying a few files often (example: sqlite database but there are others). I don't want to hammer the server and my network with updates so I am using `--vfs-write-back 10m` or something like that.

However, when I am done, I want it to upload without waiting. Currently, there doesn't not appear to be a way. I tried `vfs/refresh` and `vfs/forget` but neither forced the upload.

It would be great to have a `vfs/upload` or `vfs/force` command.

(In the mean time, I am using workarounds with a local copy but it isn't pretty...)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 28, 2023, 8:02am UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343/2 "2023-06-28T08:02:57Z")

</div>

This could be part of making a graceful shutdown where the state of the mount it guaranteed synced when it is shutdown.

Do you want to stop the mount at this point?

I did have a discussion with someone about changing the writeback time over the RC. This doesn't currently work but could be made to work with an vfs/update command to change the parameters in a running VFS.

In theory you should be able to do this with an os sync command. I don't know how the os delivers that signal though and whether it can be delivered via fuse so it certainly isn't implemented yet.

---

<div class="post-metadata">

**Author:** ![jwink3101](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@jwink3101](https://forum.rclone.org/u/jwink3101)\
**Post date:** [June 28, 2023, 2:02pm UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343/3 "2023-06-28T14:02:29Z")

</div>

All those sound good to me!

> [@ncw](#):
>
> Do you want to stop the mount at this point?

Ideally, no. But if that is the answer, it would work.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 28, 2023, 3:19pm UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343/4 "2023-06-28T15:19:55Z")

</div>

Can you open a [new issue](https://github.com/rclone/rclone/issues/new/choose) on Github about this please?

I think we should aim for a `vfs/sync` remote control command. This is quite a lot of the way towards making the mount shutdown in a synced state and I see it as a useful stepping point.

---

<div class="post-metadata">

**Author:** ![jwink3101](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@jwink3101](https://forum.rclone.org/u/jwink3101)\
**Post date:** [June 28, 2023, 6:18pm UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343/5 "2023-06-28T18:18:12Z")

</div>

Done. [Feature Request: VFS sync process to expire the write-back · Issue #7091 · rclone/rclone · GitHub](https://github.com/rclone/rclone/issues/7091)

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [August 27, 2023, 6:18pm UTC](https://forum.rclone.org/t/fr-rc-vfs-command-to-upload-files-waiting-for-write-back/39343/6 "2023-08-27T18:18:55Z")

</div>

Closed on August 27, 2023, 6:18pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
