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

2016-04-06 Thread Eric Abrahamsen
Adam Porter writes: > Hi again Eric, > > On second thought, while symlinks may be worth trying, they might not work. > I've noticed similar issues using Dropbox. > > If you put the file in your git repo and the symlink in Syncthing's repo, > I'm guessing Syncthing will not

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

2016-04-06 Thread Adam Porter
Hi again Eric, On second thought, while symlinks may be worth trying, they might not work. I've noticed similar issues using Dropbox. If you put the file in your git repo and the symlink in Syncthing's repo, I'm guessing Syncthing will not follow the symlink, in which case it wouldn't sync the

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

2016-04-06 Thread Adam Porter
Hi Eric, Sorry I'm late, just thought I'd share an idea: did you try symlinks? A symlink points to a path, not an inode, so it shouldn't get broken like a hard link.

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

2016-04-06 Thread Eric Abrahamsen
Tim Howes writes: > 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

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

2016-04-05 Thread briangpowell .
* Strongly recommend you pay close attention to Nick Dokos--he's brilliant--agree totally with his suggestions; "hardlinks cannot span filesystems" etc. ** "hardlinks breaking"--in rsync I throw -H to include/follow hard links across filesystems when syncing. *** I'm with Nick though again--not

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

2016-04-05 Thread Tim Howes
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.

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

2016-04-05 Thread Nick Dokos
Eric Abrahamsen writes: > This isn't really a Org question at all, but you all are smart and > friendly people, and are likely to have run into this situation before. > So I'm trying here before I turn to StackOverflow! > > I have Org files in a git repo, synced across

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

2016-04-05 Thread Eric Abrahamsen
Eric S Fraga writes: > Hi Eric, > > I don't know syncthing at all and how MacOS works even less [1] but I do > know emacs... a little. Could the problem be related to how emacs does > backups? cf. backup-by-copying and make-backup-files Hmm, I have my Emacs set up to not

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

2016-04-05 Thread Eric S Fraga
Hi Eric, I don't know syncthing at all and how MacOS works even less [1] but I do know emacs... a little. Could the problem be related to how emacs does backups? cf. backup-by-copying and make-backup-files Just throwing things into the mix in case something helps! Footnotes: [1] the last

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

2016-04-05 Thread Eric Abrahamsen
This isn't really a Org question at all, but you all are smart and friendly people, and are likely to have run into this situation before. So I'm trying here before I turn to StackOverflow! I have Org files in a git repo, synced across two Linux machines. At the same time, I have a few