rdiff-simple 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -18
- data/Rakefile +1 -2
- data/lib/rdiff_simple.rb +0 -4
- data/lib/rdiff_simple/options_parser.rb +3 -0
- data/lib/rdiff_simple/rdiff_backup.rb +4 -0
- data/lib/rdiff_simple/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa27efa43fb364a936e0b75dd3ce7bd01b3014c3
|
4
|
+
data.tar.gz: 271e401b093dd2f34d6b19d7b805a90410ba03ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9d2d05267877f3fa4f0e9f8db32e9bab91556b5c3a9bc539bbc20753c5beec597bfcb929fce03e2e0d0663688410d1e679ea6094dfee3f6478f535cc249e470
|
7
|
+
data.tar.gz: 620e43cf09efee1dadb5c96bb84a5752967ac5e818700f2dc155cc7bbf3df96f8cab2248cec10d36ec2d12221e42a96122f15b80185e64500e33de330c13d5d4
|
data/README.md
CHANGED
@@ -18,34 +18,20 @@ A simple wrapper around rdiff-backup
|
|
18
18
|
$ gem install rdiff-simple
|
19
19
|
```
|
20
20
|
|
21
|
-
##
|
21
|
+
## Usage
|
22
22
|
|
23
23
|
In your file:
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
require 'rdiff_simple'
|
27
27
|
|
28
|
-
|
29
|
-
backup
|
28
|
+
rdiff = RdiffSimple::RdiffBackup.new
|
29
|
+
rdiff.backup('/source', '/destination', :print_statistics, exclude: '/source/private')
|
30
|
+
rdiff.verify('/destination')
|
30
31
|
```
|
31
32
|
|
32
|
-
## Usage
|
33
|
-
|
34
|
-
Arguments Order is:
|
35
|
-
|
36
|
-
- `source`
|
37
|
-
- `destination`
|
38
|
-
- `flag options like --exclude-other-filesystems`
|
39
|
-
- `hash arguments like --exclude /usr/bin`
|
40
|
-
|
41
|
-
All multi-word symbols should be converted to underscores: `--exclude-other-filesystems` becomes `:exclude_other_filesystems`.
|
42
|
-
|
43
|
-
The `execute` method will return the exit code from rdiff-backup. In order to get the output from rdiff-backup pass in a [`Logger`][logger] to [`RdiffBackup.new`][new].
|
44
|
-
|
45
33
|
## License
|
46
34
|
|
47
35
|
Released under the MIT License. See the [LICENSE][] file for further details.
|
48
36
|
|
49
37
|
[license]: LICENSE.txt
|
50
|
-
[logger]: http://www.ruby-doc.org/stdlib-2.0.0/libdoc/logger/rdoc/Logger.html
|
51
|
-
[new]: http://rubydoc.info/github/ketiko/rdiff-simple/master/RdiffSimple/RdiffBackup#initialize-instance_method
|
data/Rakefile
CHANGED
data/lib/rdiff_simple.rb
CHANGED
data/lib/rdiff_simple/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdiff-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Hansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|