Syncthing 0.12.21 Linux Mint 17.3
I am using Syncthing to sync various config files across machines. The files live in ~/Sync/dotfiles and are symlinked to their respective locations. This works wonderfully, ST may as well be made by a certain fruit company, as it ‘just works’. Mad props to the team.
Curiously, ST itself does not play nice with this setup. Upon startup, it removes the symlink and copies its config file there. Not the default config, but the one I linked previously. Hence, as long as I don’t make any changes, I’m fine, but the file is not synced any longer.
$ sudo stop syncthing
$ rm -rf ~/.config/syncthing/*
$ cd ~/Sync/dotfiles/.config/syncthing_iris
$ for file in $(ls) ; ln -s $(pwd)/$file ~/.config/syncthing/$file
$ ls -al ~/.config/syncthing
total 16
lrwxrwxrwx 1 kalle kalle 57 Mar 24 12:56 cert.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/cert.pem
lrwxrwxrwx 1 kalle kalle 59 Mar 24 12:56 config.xml -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/config.xml
lrwxrwxrwx 1 kalle kalle 63 Mar 24 12:56 csrftokens.txt -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/csrftokens.txt
lrwxrwxrwx 1 kalle kalle 63 Mar 24 12:56 https-cert.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/https-cert.pem
lrwxrwxrwx 1 kalle kalle 62 Mar 24 12:56 https-key.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/https-key.pem
lrwxrwxrwx 1 kalle kalle 56 Mar 24 12:56 key.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/key.pem
$ sudo start syncthing
$ ls -al ~/.config/syncthing
total 24
lrwxrwxrwx 1 kalle kalle 57 Mar 24 12:56 cert.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/cert.pem
-rw------- 1 kalle kalle 4965 Mar 24 13:02 config.xml
lrwxrwxrwx 1 kalle kalle 63 Mar 24 12:56 csrftokens.txt -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/csrftokens.txt
lrwxrwxrwx 1 kalle kalle 63 Mar 24 12:56 https-cert.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/https-cert.pem
lrwxrwxrwx 1 kalle kalle 62 Mar 24 12:56 https-key.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/https-key.pem
drwxr-xr-x 2 kalle kalle 4096 Mar 24 13:02 index-v0.11.0.db
lrwxrwxrwx 1 kalle kalle 56 Mar 24 12:56 key.pem -> /home/kalle/Sync/dotfiles/.config/syncthing_iris/key.pem
What’s happening here? Thanks in advance for any help on this!