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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c1f7494bc312030d905a1cbec89e8ffd1dd89434a6ad10401d8c3c23e695354
4
- data.tar.gz: b8b88229daf6d237b5a69024bcc18180f2032096c45f5d7351513acd219a9f05
3
+ metadata.gz: 1f5bec68a22cd09153f852ed0e55e260d3dfcf67005820e11d7f432c37da162c
4
+ data.tar.gz: ae4829c7a5698c8aae45df82a03252086a12a3b694b01cf21c7aab0fce30c5de
5
5
  SHA512:
6
- metadata.gz: 8fdadf6c7f5a78dce6f9bf256512d1c85893f773c68f5616b7c922c8d1f219423248eb748b6b2b6d8c87e6823cac4b90c5ba152988c8b8bef077da0ca10fea1c
7
- data.tar.gz: 06e8093496e5e0a01df644cd25c33b6eae661da09b42540ee49d91f68fe2f071ffba228b146ab5bf58748f2b4828d75e7c792f1956a74c91cc7e2ed97ff15569
6
+ metadata.gz: 1d3e2a749d430eccc08218e73792853fec75fc8b4654056a093c6b6b4f1ac496184a0b4ccd976f829f330251899d89a9088856be21c9d361f6d133e49d301335
7
+ data.tar.gz: 3afc128f7407e2e3702e2399f9c3d9b26618da3e8e45edc91ffebe53b5b7abbc8dfcf2c679677c192f28a405ca502e7830e0dc15e4cf27625f2ba4c49c7dfed4
@@ -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) }
@@ -1,3 +1,3 @@
1
1
  module Rcloner
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcloner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Afanasev