nextcloud / desktop

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

Renamed files get deleted #5739

Open DerekL0576 opened 1 year ago

DerekL0576 commented 1 year ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

I have a backup script that creates numbered daily backups. When I try to let the desktop client sync this folder ALL the files get deleted after the script runs.

If I have file1, file2, file3... file3 is deleted, file2 is renamed to file3, file1 is renamed to file2 and a new file1 is created. A pretty standard way to keep the last 3 backups.

The client recognises that the files have been removed, but not that they were replaced by new files.

To me it seems like the same issue as #5420, showing that the same problem exists with files too.

Steps to reproduce

Create a script that quickly renames a bunch of files in the manor that I described.

Expected behavior

The new files should be synced not deleted.

Which files are affected by this bug

N/A

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Other

Nextcloud Server version

26.0.0

Nextcloud Desktop Client version

3.8.2

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

Nextcloud Server logs

No response

Additional info

No response

anonbergine commented 1 year ago

Similar issue with folders https://github.com/nextcloud/desktop/issues/5420