From 13279aed2659cb409fcae6d71bf7d5f26b2748c7 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 3 Jun 2015 13:20:24 +0100 Subject: Ensure that we restore permissions too. --- byteback-restore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3