desktop icon indicating copy to clipboard operation
desktop copied to clipboard

automatically suspend synchronization of a disappeared group folder: avoid deleting currently synced files

Open ferdiga opened this issue 1 year ago • 3 comments

How to use GitHub

  • Please use the 👍 reaction to show that you want to have the same feature implemented.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature description

this proposed solution deleted all synced data of the group folders - some 150GB - in my case https://github.com/nextcloud/fulltextsearch/issues/858#issuecomment-2294889748

I suggest to check the size of the deleted files and propose to ask "Do you really want to delete xxxGB"

It's just the reverse situation of checking/asking if the client should download large directories.

ferdiga avatar Aug 21 '24 06:08 ferdiga

@ferdiga I do not get what you are asking for. Are you suggesting that under some conditions, files no longer available on the server must not be deleted by the sync client ? That would result in a subsequent upload by the client. If I understand the original problem correctly, the given user would now have a copy of the group folder in their own personal storage space. That may not be desirable.

Please note that for storage that may temporarily be unavailable, there is a way to handle this and in fact the client would pause the sync of a given folder that is reported as not mounted by the server.

Just being absent, will cause upload to your personal storage and I doubt that this is what most users would want.

mgallien avatar Aug 23 '24 08:08 mgallien

I took on me to rename the issue to not sound like a bug (especially since you added the enhancement label). When we speak about files being deleted, people tend to be over reactive.

mgallien avatar Aug 23 '24 08:08 mgallien

what happened:

  • group folders have been disabled
  • client sync deleted immediately some 100GB, as group folders vanished
  • after enabling the group folders again some 100GB have been downloaded again. Was not a problem on high capacity connection

this is obviously a correct behaviour.

Nevertheless IMO the client should ask if the files should be deleted or if this is only temporary outage.

The problem seems that if no server is available, the sync is paused, but in this case the server was available.

ferdiga avatar Aug 23 '24 08:08 ferdiga

Related: #6099

joshtrichards avatar Aug 30 '24 14:08 joshtrichards