TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Sshync – Auto-sync files over SSH

65 pointsby megalodonover 9 years ago

11 comments

beagle3over 9 years ago
This is a nice little project, but I think rsync is better suited for any serious use. It can do ssh, it&#x27;s own protocol or any connection program that would tunnel bidirectionally. It does very efficient transfer, can create off-line patch files, and basically do any one-way file&#x2F;dir sync function you can think of.<p>Edit: this one is continuous and rsync is one-shot. Personally, I&#x27;ve been using inotify+rsync+timeout (intofy+rsync has a race condition, so limiting the inotify wait and syncing anyway is essential). Does sshync avoid the race?
评论 #10254959 未加载
评论 #10253586 未加载
评论 #10254064 未加载
评论 #10253639 未加载
deckard1over 9 years ago
These are some pretty awful scripts, to be honest. Use Unison (<a href="https:&#x2F;&#x2F;www.cis.upenn.edu&#x2F;~bcpierce&#x2F;unison&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cis.upenn.edu&#x2F;~bcpierce&#x2F;unison&#x2F;</a>). Syncing is much more dangerous and difficult than people assume.
electrumover 9 years ago
There is a standard tool, ssh-copy-id, that does the job of sshpair.
评论 #10253879 未加载
评论 #10253836 未加载
yaurover 9 years ago
I use lsyncd for this. Why would I switch?
评论 #10253536 未加载
评论 #10253554 未加载
评论 #10254018 未加载
pepveover 9 years ago
There&#x27;s also sshfs: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;SSHFS" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;SSHFS</a>
评论 #10256154 未加载
megalodonover 9 years ago
Hey.<p>I appreciate the positive response, but this is just something I put together quickly and needs a little refurbishing before it can be considered a viable alternative to something like lsyncd.<p>Top priorities right now are to get rid of ssh-client dependency and to address security concerns. I&#x27;d also like to implement file diffing.<p>Your feedback is invaluable!
评论 #10255155 未加载
nickysielickiover 9 years ago
See also: <a href="http:&#x2F;&#x2F;syncmaildir.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;syncmaildir.sourceforge.net&#x2F;</a><p>This is how I do my email, exim running on a DO instance and I send and receive to my laptop via ssh.
adontzover 9 years ago
On Windows I use WinSCP, from menu &quot;Commands\Synchronize&quot; and &quot;Commands\Keep Remote Directory up to Date&quot;, or from scripting &quot;synchronize&quot; and &quot;keepuptodate&quot;.
np422over 9 years ago
Why not use the existing rsync over ssh and ssh-copy-id?<p>I think newline is valid in filenames in most *nix filesystems, so the possibility to use an alternative RS would be nice.
pandada8over 9 years ago
What&#x27;s difference between this one and rsync?
评论 #10253508 未加载
评论 #10253587 未加载
评论 #10253513 未加载
评论 #10253418 未加载
评论 #10253939 未加载
评论 #10253603 未加载
felipellrochaover 9 years ago
I pronounced this &#x27;s-shync&#x27; in my head. I am happy.