Sha256: 7293a241c448a5797f655b5089919e60e3883ef65b4e3fe53c340396264beb36
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
## Table of Contents * [Scope](#scope) * [Installation](#installation) * [Usage](#usage) # Scope The scope of this gem is to install the specified `rsync` command into the `crontab` schedule. # Installation Install the gem from your shell: ```shell gem install rsync_cron ``` # Usage The gem comes with a CLI interface. You can print its help by: ```shell rsync_cron -h Usage: rsync_cron --cron=15,30 21 * * * --src=/ --dest=/tmp --log=/var/log/rsync.log -c, --cron=CRON The cron string, i.e.: 15 21 * * * -s, --src=SRC The rsync source, i.e. user@src.com:files -d, --dest=DEST The rsync dest, i.e. user@dest.com:home/ -l, --log=LOG log command output to specified file -p, --print Print crontab command without installing it -k, --check Check src and dest before installing crontab -h, --help Prints this help ``` ## Default schedule The `crontab` is scheduled one per day by default (at midnight). You can specify a different schedule directly on the command line: ```shell # run every sunday rsync_cron --cron=* * * * 0 --src=user@src.com:files --dest=~/tmp ``` ## Log to a file It is possible to log the `rsync` output to a file: ```shell rsync_cron --src=user@src.com:files --dest=~/tmp --log=./rsync.log ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rsync_cron-1.0.8 | README.md |
rsync_cron-1.0.7 | README.md |
rsync_cron-1.0.6 | README.md |