diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2015-12-18 12:14:49 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2015-12-18 12:14:49 +0000 |
commit | be576b36599e5f5c31da0477c0ab5913c9582402 (patch) | |
tree | 0d93fcddf90b1e4898edb13aa57a5da04125b063 /bin/byteback-receive | |
parent | 1135caaede77031d5843f859f8ccb7af5f4cd534 (diff) |
Added "." to the rsync restore command
This prevents ALL TEH BACKUPS being copied back to the host.
Diffstat (limited to 'bin/byteback-receive')
-rwxr-xr-x | bin/byteback-receive | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/byteback-receive b/bin/byteback-receive index d6fce81..0d7d025 100755 --- a/bin/byteback-receive +++ b/bin/byteback-receive @@ -71,6 +71,8 @@ if (ARGV[0] == 'byteback-restore') Dir.chdir(byteback_host) + args << "." + restore.results.each do |r| args << File.join(".", r.snapshot, r.path) end |