nextcloud / desktop

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

Setting to always prefer local versions of file #4113

Open albgus opened 2 years ago

albgus commented 2 years ago

I have installed the Nextcloud client on a number of family systems as a rudimentary backup solutions. One problem with this is that I've seen the client suddenly stop syncing files due to sync conflicts, where the server wants to sync back an older version of the file.

I would like to have an option in the sync client to always prefer the local version of a file and automatically resolve sync conflicts. This would be ideal for cases where the computer should always be the authoritative source of files.

allexzander commented 2 years ago

This will work if having only one server and one client. How will this then work if having more than one client? Which computer will have a higher priority?

jtagcat commented 2 years ago

The client will notify the user that it is not possible; or it is invalidated.

Recently, multiple users, using only their own devices, have reported conflicts.

It's mostly one of server/client is corrupted for no apparent reason. They are old, untouched files.

acalatrava commented 2 years ago

BUMP, I need this too

olegzvg commented 1 year ago

Is that possible to to prefer not server or local version, but simply LATEST file versions?

Use case: CGI production. Shot is a sequence of JPGs (70-600 files per shot) Every shot goes through iterations constantly overriding older version with new version, because through these sequences it's connected to editing software, no need to store every single version, it will be a lot of garbage and a hustle to relink it every time to editing.

I don't understand how server's version or local version should be more authoritative than the other, it doesn't make any sense.

If many people are working on the same shot, it shouldn't be a problem to keep LATEST version. If there's an issue with overriding, it is managing issue, it shouldn't be resolved by sync software.

Now, when I'm rewriting sequences, Nextcloud asks me about these conflicts, which makes it unusable. Dropbox resolving this correctly with latest being more authoritative.

Can I tweak something to AUTOMATICALLY prefer latest versions of the files?

schobernoise commented 1 year ago

I would like to know that too!