Skip to content
/ drsync Public

Node utility to watch and sync files into an rsync-enabled Docker container

License

Notifications You must be signed in to change notification settings

stefda/drsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drsync

Node utility to watch files for changes and sync them once changed over the native rsync protocol.

Build Status

Requirements

drsync has a hard dependency on rsync that takes care of the file transfer. Windows users can get rsync as part of the cwRsync utility.

Installation and usage

Install via yarn (or npm) like so:

yarn global add drsync

At the bare minimum, the utility needs host and a list of directories to sync. These could be provided either as options to the cli command or by creating a drsync.yml file with the options defined as shown below:

options:
  host: 192.168.99.100
  files:
    - src/
    - test/

Other options (and their default values) are:

  • port (873)
  • volume (volume)
  • user (nobody)
  • group (nogroup)
  • watch (false)

A fully customised yaml config will look like this:

options:
  host: 192.168.99.100
  port: 10873
  volume: docker
  user: www-data
  group: www-group
  watch: true
  files:  
    - src/
    - test/