summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-06-03 13:20:24 +0100
committerSteve Kemp <steve@steve.org.uk>2015-06-03 13:20:24 +0100
commit13279aed2659cb409fcae6d71bf7d5f26b2748c7 (patch)
tree0143a12c92a92b836efa8406f248a676abeb098e
parent2af8b5453c95f7ffe13ae5c5560a3f37a07aca75 (diff)
Ensure that we restore permissions too.
-rwxr-xr-xbyteback-restore3
1 files changed, 2 insertions, 1 deletions
diff --git a/byteback-restore b/byteback-restore
index 4972cf4..9a6f3f0 100755
--- a/byteback-restore
+++ b/byteback-restore
@@ -58,7 +58,8 @@ end
def restore_file( path, revision )
cmd = %w( rsync )
cmd += [ "--rsh", "ssh -o BatchMode=yes -x -a -i /etc/byteback/key -l byteback" ]
- cmd += [ "--rsync-path", "restore" ]
+ cmd += [ "--rsync-path", "restore --fake-super" ]
+ cmd += [ "-aApzrX", "--numeric-ids" ]
cmd += [ "#{@destination_host}:/#{revision}/#{path}", "." ]
system(*cmd)