News for hackers. Stuff that matters.
Re:Show HN: Sshync – Auto-sync files over SSH by pandada8 on Monday September 21, 2015 @12:33PM (#10253383)
What's difference between this one and rsync?
Re:Show HN: Sshync – Auto-sync files over SSH by alcoholiday on Monday September 21, 2015 @12:51PM (#10253508)
Javascript!

And fewer features.

(but a cool little project none the less!)

Re:Show HN: Sshync – Auto-sync files over SSH by LukeShu on Monday September 21, 2015 @01:04PM (#10253587)
It looks to me that this keeps running "in the background" and watches for changes; syncing things as they happen. Rsync can't do that.
Re:Show HN: Sshync – Auto-sync files over SSH by vidarh on Monday September 21, 2015 @01:17PM (#10253692)
rsync can however take a file list, and inotifywait can produce a file list with the help of awk or sed. Which means you can achieve continuous synchronisation with ~5 lines of shell script. A bit more care if you want to sync two ways.

I've found that my file syncing needs tends to be so varied that most of the dedicated tools I've looked at have almost always been just wrong enough not to be worth it compared to just composing something with rsync and inotifywait.

Of course your mileage will vary.

Re:Show HN: Sshync – Auto-sync files over SSH by lawl on Monday September 21, 2015 @01:13PM (#10253655)
True but you could spawn rsync with a different tool that uses inotify, for example: http://git.quitesimple.org/adhocify/tree/README
Re:Show HN: Sshync – Auto-sync files over SSH by smokemeth247 on Monday September 21, 2015 @12:52PM (#10253513)
rsync is not written in a hipster language.
Re:Show HN: Sshync – Auto-sync files over SSH by chisleu on Monday September 21, 2015 @01:27PM (#10253760)
This is 130 lines of code, including whitespace.
Re:Show HN: Sshync – Auto-sync files over SSH by stephenr on Monday September 21, 2015 @02:21PM (#10254148)
Plus node, and npm. That's an extra 59 packages from Apt. before you install this tool.
Re:Show HN: Sshync – Auto-sync files over SSH by chisleu on Monday September 21, 2015 @06:38PM (#10255570)
So we will roll glibc and everything else into the counts too?

My point was it isn't "hipster" to use something that is fast and efficient.

Re:Show HN: Sshync – Auto-sync files over SSH by stephenr on Monday September 21, 2015 @10:22PM (#10256335)
Writing yet another file sync solution using nodejs of all things is definitely hipster.

Glibc is used by multiple packages. I simply identified the number of dependencies to install this tool when nodejs/npm are not installed.

Re:Show HN: Sshync – Auto-sync files over SSH by chisleu on Wednesday September 30, 2015 @12:46AM (#10301843)
https://github.com/mattijs/node-rsync

You can use rsync if you like too

Re:Show HN: Sshync – Auto-sync files over SSH by david_p on Monday September 21, 2015 @01:52PM (#10253939)
this works on windows
Re:Show HN: Sshync – Auto-sync files over SSH by ion201 on Monday September 21, 2015 @02:04PM (#10254022)
rsync can be run in cygwin.
Re:Show HN: Sshync – Auto-sync files over SSH by megalodon on Monday September 21, 2015 @01:05PM (#10253603)
Quoting beagle3

> this one is continuous and rsync is one-shot.