rsync_cron 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/rsync_cron/cli.rb +2 -2
- data/lib/rsync_cron/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 781d22dde1e983f1e30ee9d3553b99c803411692
|
|
4
|
+
data.tar.gz: 041e853913ce325e2d1cb8b27ae34a9fb9136eb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cada4cc28432eb2b0382ed18d502dd161423637b1d5c66b04e12ee6035e7728cc9db019ce40b998de193a3b97c0f01725a00752de005729c64c157ccb6709e1
|
|
7
|
+
data.tar.gz: 6bcf6f6baf825cf24e364b6c3332544d3e9a710922e4703ea6af24de10b592cfc6640d777580dddad376563dfd43fa0eeb2b889110a678afec6e27d25a5d568d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ gem install rsync_cron
|
|
|
16
16
|
|
|
17
17
|
# Warning
|
|
18
18
|
Be aware that this library will write to the `crontab` file in a destructive way.
|
|
19
|
-
Do remember to take a backup
|
|
19
|
+
Do remember to take a backup before installing a new `crontab`.
|
|
20
20
|
|
|
21
21
|
# Usage
|
|
22
22
|
The gem comes with a CLI interface, you can print its help by:
|
|
@@ -26,8 +26,8 @@ Usage: rsync_cron --cron='15,30 21' --src=/ --dest=/tmp --log=/var/log/rsync.log
|
|
|
26
26
|
-c, --cron=CRON The cron string, i.e.: '15 21 * * *'
|
|
27
27
|
-s, --src=SRC The rsync source, i.e. user@src.com:files
|
|
28
28
|
-d, --dest=DEST The rsync dest, i.e. user@dest.com:home/
|
|
29
|
-
-l, --log=LOG
|
|
30
|
-
-o, --opts=OPTS
|
|
29
|
+
-l, --log=LOG Log command output to specified file
|
|
30
|
+
-o, --opts=OPTS Merge specified extra options, when supported
|
|
31
31
|
-p, --print Print crontab command without installing it
|
|
32
32
|
-k, --check Check src and dest before installing crontab
|
|
33
33
|
-h, --help Prints this help
|
data/lib/rsync_cron/cli.rb
CHANGED
|
@@ -47,11 +47,11 @@ module RsyncCron
|
|
|
47
47
|
@dest = Host.factory(dest)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
opts.on("-lLOG", "--log=LOG", "
|
|
50
|
+
opts.on("-lLOG", "--log=LOG", "Log command output to specified file") do |log|
|
|
51
51
|
@log = log
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
opts.on("-oOPTS", "--opts=OPTS", "
|
|
54
|
+
opts.on("-oOPTS", "--opts=OPTS", "Merge specified extra options, when supported") do |_opts|
|
|
55
55
|
@options << _opts
|
|
56
56
|
end
|
|
57
57
|
|
data/lib/rsync_cron/version.rb
CHANGED