rbackup 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -1
- data/gemspec.rb +1 -1
- data/lib/rbackup.rb +6 -2
- metadata +3 -6
data/Rakefile
CHANGED
data/gemspec.rb
CHANGED
data/lib/rbackup.rb
CHANGED
@@ -68,8 +68,7 @@ class RBackup
|
|
68
68
|
destination = profile['destination']
|
69
69
|
source = [ profile['source'] ].flatten
|
70
70
|
|
71
|
-
options = "--
|
72
|
-
# --delete delete extraneous files from dest dirs
|
71
|
+
options = "--numeric-ids --safe-links -axzSvL"
|
73
72
|
# --numeric-ids don't map uid/gid values by user/group name
|
74
73
|
# --safe-links ignore symlinks that point outside the tree
|
75
74
|
# -a, --archive recursion and preserve almost everything (-rlptgoD)
|
@@ -78,6 +77,11 @@ class RBackup
|
|
78
77
|
# -S, --sparse handle sparse files efficiently
|
79
78
|
# -v, --verbose verbose
|
80
79
|
|
80
|
+
if profile['delete'].nil? || profile['delete']
|
81
|
+
options = "--delete " + options
|
82
|
+
# --delete delete extraneous files from dest dirs
|
83
|
+
end
|
84
|
+
|
81
85
|
if destination.include?(':') || source.include?(':')
|
82
86
|
options += ' -e ssh'
|
83
87
|
# -e, --rsh=COMMAND specify the remote shell to use
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbackup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 21
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Winton Welsh
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-12-26 00:00:00 -08:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -56,7 +55,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
55
|
requirements:
|
57
56
|
- - ">="
|
58
57
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 3
|
60
58
|
segments:
|
61
59
|
- 0
|
62
60
|
version: "0"
|
@@ -65,7 +63,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
63
|
requirements:
|
66
64
|
- - ">="
|
67
65
|
- !ruby/object:Gem::Version
|
68
|
-
hash: 3
|
69
66
|
segments:
|
70
67
|
- 0
|
71
68
|
version: "0"
|