Quickly renaming Syncthing sync-conflicts

I’ve recently moved away from Syncthing to Seafile to sync my files for a few reasons but the 1st reason was because it kept creating sync-conflits, even though the files hadn’t changed.

Maybe that was an issue with my configs but I couldn’t be bothered to go through setting everything back up so I moved to Seafile.

Here’s a handy command to rename any files ending with .sync-conflict-numbers-numbers-blah

rename 's/\.sync-conflict-[0-9]*-[0-9]*-[azA-Z0-9]*//' **

If you’re on Ubuntu, you’ll need to install the rename command first:

sudo apt install -y rename

Hope this helps anyone!

Copyright 2011-2021 Dean (deanpcmad)

Buy me a Coffee