summaryrefslogtreecommitdiff
path: root/bin/byteback-receive
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2015-12-18 12:14:49 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2015-12-18 12:14:49 +0000
commitbe576b36599e5f5c31da0477c0ab5913c9582402 (patch)
tree0d93fcddf90b1e4898edb13aa57a5da04125b063 /bin/byteback-receive
parent1135caaede77031d5843f859f8ccb7af5f4cd534 (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-xbin/byteback-receive2
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