emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [OT] Git plus Syncthing: breaking hard links


From: Tim Howes
Subject: Re: [O] [OT] Git plus Syncthing: breaking hard links
Date: Tue, 5 Apr 2016 15:53:14 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

To avoid data loss, Syncthing creates a temporary file during transfer
with the name ~syncthing~.{filename}.tmp

If the transfer completes successfully, then it moves that file in place
of the previous version. It's a new inode, not an update of the previous
inode, so the hard link will be lost.

Instead of using hard links, you could share your git repo folder
directly using Syncthing, but use an .stignore file to exclude the files
that you want to keep private (such as the .git directory).

https://docs.syncthing.net/users/ignoring.html

-Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]