Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

mattes/autorsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

autorsync

Watch directories for changes and update remote directories with rsync. Directories are monitored with fs.watch from Node.js.

rsync is a file transfer program for Unix systems. rsync uses the 'rsync algorithm' which provides a very fast method for bringing remote files into sync. rsync works unidirectional. If you are looking for a two-way-sync have a look at unison. autorsync could easily be ported to be used with unison.

Prerequisites

Recommended: Update rsync to the latest version on Mac OS. Tutorial

Usage

autorsync [option]... source user@host[:port] destination

Options:
  --exclude=filepath    path to "exclude from sync file" relative to source or absolute
  --sync-delay=n        wait for sync to happen
  --sync-verbose=bool   print more details about sync
  --sync-simulate=bool  simulate sync and print details about sync

Example

./autorsync --exclude=.rsync_ignore ~/watched_directory [email protected] in_sync

License

Copyright 2012 Matthias Kadenbach
Released under the MIT license

About

Node.js File Watch + rsync

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published