diff --git a/cluster-copy/cluster-copy-lib.pl b/cluster-copy/cluster-copy-lib.pl index d05d3c4a1..f06fe1df2 100755 --- a/cluster-copy/cluster-copy-lib.pl +++ b/cluster-copy/cluster-copy-lib.pl @@ -205,6 +205,11 @@ foreach $s (@run) { else { push(@errs, [ $f, "Copy was incomplete" ]); } + + # Preserve file permissions + &remote_foreign_call($s->{'host'}, "webmin", + "set_ownership_permissions", $st[4], $st[5], + $st[2] & 0777, $dest); } # Run the post command on remote