Skip to content

arcmags/usync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

usync

Usync is basic rsync wrapper controlled by a simple yaml file.

Usync searches the current and parent directories for a .usync file. This file defines a remote url and directory as well as any rsync exclude patterns.

Usage

usync <COMMAND> [OPTION...]

Commands

init : Create a new .usync file in current directory.

push : Push changes to remote source.

pull : Pull changes from remote source.

Options

-c, --config <FILE> : Read config from FILE instead of .usync.

-D, --dry-run : Perform dry run making no changes.

-V, --verbose : Show rsync command.

-H, --help : Display help and exit.

Config

.usync - yaml file defining usync repo, contains the following keys:

url : Remote repo url. May be an ssh alias. Required.

dir : Remote directory. Must be a full path. Required.

port : Remote port. If blank, inherit from ssh alias, or port 22.

user : Remote user. If blank, inherit from ssh alias, or current user.

exclude : List of patterns to exclude via rsync --exclude option. See FILTER RULES section of rsync manual.

Requirements

  • rsync
  • ssh
  • yq

Chris Magyar
GPL v3

About

Simple rsync wrapper controlled by config file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages