summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2015-12-02 12:50:00 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2015-12-02 12:50:00 +0000
commit0a523d29567f91083485f5837965c10e22100bf2 (patch)
tree6adbf50150d457de98c27e3c76ccc61c68f5d42b
parent6bbf190a8a8e761bffc7e99ffb8357746dd9cad9 (diff)
Exclude "." from the rsync so the pwd doesn't get its permissions changed..
Otheriwse you end up with your current directory owned by byteback:byteback (or whoever owns the byteback_root).
-rwxr-xr-xbin/byteback-receive3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/byteback-receive b/bin/byteback-receive
index 0b6a5c5..e5be576 100755
--- a/bin/byteback-receive
+++ b/bin/byteback-receive
@@ -55,6 +55,9 @@ if (ARGV[0] == 'byteback-restore')
end
end
+ # Always exclude the current directory, because it can change the
+ # ownership at the restorers end.
+ args << "--exclude=."
restore = Byteback::Restore.new(byteback_root)