nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.02k stars 793 forks source link

Automatic free up space on virtual folders #3180

Open adi-dev opened 3 years ago

adi-dev commented 3 years ago

The virtual folders if fantastic feature. It would be nice if we could set up an expiry date and/or occupied space limit for local versions.

FlexW commented 3 years ago

Maybe we could also investigate if it is possible to just dehydrate files when they are not needed anymore by any application, so that you not need to set expiration dates manually.

adi-dev commented 3 years ago

IMHO, the expiry date with space quota seams more reasonable solution. Let's say, I work on a project using virtual files. As long as I'm active on this project, we don't want to dehydrate and re-download files while the project is alive.

er-vin commented 3 years ago

Maybe we could also investigate if it is possible to just dehydrate files when they are not needed anymore by any application, so that you not need to set expiration dates manually.

There should be something, but it'll be under Windows control. I seem to remember the API allows you to set hints, but ultimately it's Windows which triggers such implicit dehydrations via a hook (so similar to implicit hydrations).

feutl commented 3 years ago

I take care of this using MS Windows Storage Sense

image

If I got the request right, would be nice to have a option in NC Client to get there or at least "configure" it, most people only find it if they run out of disk space and Windows proposes to turn it on / configure it (this happened to me).

adi-dev commented 3 years ago

Interesting, I didn't know about this feature before. It looks something exactly what I would need. Cheers @feutl

mgallien commented 3 years ago

I take care of this using MS Windows Storage Sense

image

If I got the request right, would be nice to have a option in NC Client to get there or at least "configure" it, most people only find it if they run out of disk space and Windows proposes to turn it on / configure it (this happened to me).

Sorry for the delay but thanks for the information I did not knew that but something we should probably add in our documentation such that everybody can easily find it

mgallien commented 3 years ago

Interesting, I didn't know about this feature before. It looks something exactly what I would need. Cheers @feutl

Did you had time to test ? Would you like to help us by adding it to the documentation ?

feutl commented 3 years ago

Interesting, I didn't know about this feature before. It looks something exactly what I would need. Cheers @feutl

Did you had time to test ? Would you like to help us by adding it to the documentation ?

I am using this feature for NC and OneDrive, the later one for many years now and I must say it seems to work ;) but I have no idea of how to test it. All I can say is, that my harddisk is not filling up ;) and the files which are marked to stay synced locally are available offline all the time. I use OneDrive with my company very much, and therefor storage sense and it works as far as I can say.

From a perspective of documentation, I would just add the information and a link to MS official documentation, because it is a OS feature and the "behavior" and "features" could change.

https://support.microsoft.com/en-us/windows/manage-drive-space-with-storage-sense-654f6ada-7bfc-45e5-966b-e24aded96ad5

https://techcommunity.microsoft.com/t5/storage-at-microsoft/windows-10-and-storage-sense/ba-p/428270

cg-lux commented 1 year ago

Since it is possible to trigger a "free up local space" with a right click, it should also be possible that the client triggers this automatically, e.g. at startup or after x hours or x days (adjustable in the client).

it-tsa-bs commented 4 months ago

Would be very useful. Working locally but save just in cloud = handy & save