backup-remote 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/backup/remote_data.rb +4 -0
- data/lib/backup/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: f34a3a0fa7801434d9451ca9e328afdc09ff3d22
|
4
|
+
data.tar.gz: d3b35356d2bca06636de49be0eee14ffcb621e73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef67d3cf1b5b005269644149ace6be149f4a2cfa3d7a9488fbfa373e49d4517224db6c53d9a8631f3f31e6b0cfe750547f20e48f17e3dae06699bc8a6e8273e
|
7
|
+
data.tar.gz: fd3763f76c453a57c8164c2f7e2c3eeeeecca815e93c136ebd212b6fc664159e0b1e465967b8dae4515a7f0ebc6641608573242a9080add8f80e481e62dc0cd1
|
data/README.md
CHANGED
@@ -6,6 +6,11 @@ If you use backup gem you should run `backup perform` on the machine where resou
|
|
6
6
|
|
7
7
|
This gem adds support for models to perform backups on a remote server.
|
8
8
|
|
9
|
+
This gem realizes pull strategy when the backup files are pulled from the remote server to the backup server and then backup files are distributed to backup storages.
|
10
|
+
Backup gem realizes as push strategy when the backup files are created and pushed from remote server to backup storages from the server itself.
|
11
|
+
|
12
|
+
It means that for using backup-remote gem you don't need to setup additional software on the remote server (like ruby, gems, etc) to perform backups.
|
13
|
+
Only ssh access is needed for the remote server.
|
9
14
|
|
10
15
|
|
11
16
|
Backup is a system utility for Linux and Mac OS X, distributed as a RubyGem, that allows you to easily perform backup
|
@@ -169,6 +174,7 @@ Options:
|
|
169
174
|
|
170
175
|
* command - command to run to generate backup on server. Not used if script is specified.
|
171
176
|
* script - path to script file to upload and run on server to generate backup. Script is stored locally nad is uploaded to server.
|
177
|
+
script path is relative to root-path.
|
172
178
|
|
173
179
|
|
174
180
|
|
data/lib/backup/remote_data.rb
CHANGED
@@ -75,6 +75,10 @@ module Backup
|
|
75
75
|
if remote_script && remote_script!=""
|
76
76
|
# use script
|
77
77
|
# upload script
|
78
|
+
|
79
|
+
puts "config root: #{Config.root_path}"
|
80
|
+
puts "config: #{Config.inspect}"
|
81
|
+
|
78
82
|
local_script_path = File.join(Config.root_path, remote_script)
|
79
83
|
|
80
84
|
f_remote = Tempfile.new('backup')
|
data/lib/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup-remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Ivak, Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: CFPropertyList
|