rcloner 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rcloner/backuper.rb +8 -0
- data/lib/rcloner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f5bec68a22cd09153f852ed0e55e260d3dfcf67005820e11d7f432c37da162c
|
4
|
+
data.tar.gz: ae4829c7a5698c8aae45df82a03252086a12a3b694b01cf21c7aab0fce30c5de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d3e2a749d430eccc08218e73792853fec75fc8b4654056a093c6b6b4f1ac496184a0b4ccd976f829f330251899d89a9088856be21c9d361f6d133e49d301335
|
7
|
+
data.tar.gz: 3afc128f7407e2e3702e2399f9c3d9b26618da3e8e45edc91ffebe53b5b7abbc8dfcf2c679677c192f28a405ca502e7830e0dc15e4cf27625f2ba4c49c7dfed4
|
data/lib/rcloner/backuper.rb
CHANGED
@@ -41,6 +41,14 @@ module Rcloner
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
# https://github.com/GilGalaad/duplicity-rclone does not creates
|
45
|
+
# folders automatically on a remote destination (if there's no folder
|
46
|
+
# command will fail). So first we will create backup folder using rclone:
|
47
|
+
if @config['destination'].include?('rclone://')
|
48
|
+
rclone_storage = @config['destination'].sub('rclone://', '')
|
49
|
+
execute %W(rclone mkdir #{rclone_storage})
|
50
|
+
end
|
51
|
+
|
44
52
|
@command = %W(duplicity)
|
45
53
|
@config['include'].each { |i| @command.push('--include', i) }
|
46
54
|
@config['exclude'].each { |i| @command.push('--exclude', i) }
|
data/lib/rcloner/version.rb
CHANGED