4 ms·
What's difference between this one and rsync?
by pandada8 11y ago
What's difference between this one and rsync?
- deleted 11y ago[deleted]
- alcoholiday 11y agoJavascript! And fewer features. (but a cool little project none the less!)
- smokemeth247 11y agorsync is not written in a hipster language.
- chisleu 11y agoThis is 130 lines of code, including whitespace.
- deleted 11y ago[deleted]
- stephenr 11y agoPlus node, and npm. That's an extra 59 packages from Apt. before you install this tool.
- chisleu 11y agoSo 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.
- stephenr 11y agoWriting 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.
- chisleu 11y agohttps://github.com/mattijs/node-rsync https://github.com/mattijs/node-rsync You can use rsync if you like too
- LukeShu 11y agoIt looks to me that this keeps running "in the background" and watches for changes; syncing things as they happen. Rsync can't do that.
- lawl 11y agoTrue but you could spawn rsync with a different tool that uses inotify, for example: http://git.quitesimple.org/adhocify/tree/README http://git.quitesimple.org/adhocify/tree/README
- vidarh 11y agorsync 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.
- megalodon 11y agoQuoting beagle3 > this one is continuous and rsync is one-shot.
- david_p 11y agothis works on windows
- ion201 11y agorsync can be run in cygwin.