Skip to content

A quick, simple, and swashbuckling tool for synchronizing directories

License

Notifications You must be signed in to change notification settings

reasonablytall/yarsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

yarsync

A quick, simple, and swashbuckling tool for synchronizing directories

Install

There's an Arch Linux package on the aur: https://aur.archlinux.org/packages/yarsync/

Otherwise clone this repository and move yarsync somewhere in your path, or call it directly.

Dependences

yarsync requires rsync as well as inotifywait from inotify-tools.

Usage

Specify src and dest directories, and yarsync will keep dest synchronized with src until exited. dest can be a network directory over ssh, like below:

yarsync ship/ [email protected]:~/ &

touch ship/cannon.ball
# cannon.ball now exists in both ship/cannon.ball and [email protected]:~/ship/cannon.ball
# changes to  ship/cannon.ball will be mirrored in  [email protected]:~/ship/cannon.ball

Options

See yarsync -h for a list of all options.

  • yarsync --delete src dest will delete files in dest if they aren't in src to keep both sides ship-shape.

  • yarsync --exclude=swabbie src dest will exclude the file/directory swabbie from synchronization. --exclude can be specified multiple times.

About

A quick, simple, and swashbuckling tool for synchronizing directories

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages