4 ms·
What you're looking for is an automated backup solution. What you're using is a file syncing service. Those are not necessarily the same things. Why not use a
by BinaryIdiot 9y ago
What you're looking for is an automated backup solution. What you're using is a file syncing service. Those are not necessarily the same things.
Why not use a common git server? Why not use a dedicated backup solution? Many backup apps can store backups to Dropbox if that's what you want.
- derefr 9y agoNo, I do want a file-syncing service—so that I can have the same dirty git worktree on both my laptop and my desktop. Myself, when I'm at home, I just check out the project on my desktop, use SSHFS to mount it on my laptop, edit it on my laptop or desktop as needed, and have an SSH window open from my laptop to my desktop for doing things like running npm (because that'd be way too slow if I ran it from the laptop and depended on SSHFS to sync it.) If X11 or RDP was snappier, I'd just use my laptop as a thin client, but it's not, so I'm stuck with figuring out multi-master realtime source-code tree sync. A similar problem obtains when using VMs, but at least there, there isn't the requirement that I have the ability to run a GUI text editor in the VM that sees changes I make outside the VM quickly enough to be unnoticeable.
- varenc 9y agohere's shitty solution to your problem: https://github.com/gburca/rofs-filtered https://github.com/gburca/rofs-filtered basically, use FUSE to create an alternative view of your filesytem, but that fuse layer will also exclude certain files matching a regex. Only the FUSE view into your files should put in the Dropbox folder and synced. This particular fuse setup is read-only which was fine for my purposes, but you might need an alternative which allows write access for Dropbox.
- steventhedev 9y agoI use SSHFS to work from home, and then X11-forwarding to run gitk/git-gui for the occasional git ops that take too long otherwise. But for personal projects I use syncthing, which supports .stignore, gives you versioning options, and most importantly doesn't randomly revert your files back to a previous version because of clock drift.
- dwiel 9y agoFyi, i have been using unison command line tool for this scenario. It is fast enough that i can edit files locally, and then have a file system watcher on my remote machine run tests when files are changed and it only adds a second or so to the process. There are options for not syncing some files, for how to resolve conflicts, etc.