I have access to 2 group accounts: ops_user
and test_user
. Is it possible to copy a directory and all subdirectory owned by ops_user
to a new directory owned by the test_user? I.e I want to copy everything from /blah/Blah/ops
(owned by ops-user
) to /blah/Blah/test
(and have it owned by test_user
). I've tried the following.
Logged in as test_user
in /blah/Blah/test
:
rsync -avz */ ops_user@boco2:/blah/Blah/ops --owner=test_user --group=user
rsync -avzh ops_user@boco2:/blah/Blah/ops /blah/Blah/test/
rsync -avz */ ops_user@boco2:/blah/Blah/ops
rsync -avzhe ssh ops_user@boco2:/blah/Blah/ops /blah/Blah/test
Logged in as ops_user
in /blah/Blah/ops
:
'rsync -avz */ test_user@oco2:/blah/Blah/test'
None of these work. I read the man for rsync, but just can not figure this out. I do not have SA perms to change group owners, but thought I could copy and add test perms. Is rsync even what I should be using? Any suggestions would be greatly appreciated.
ls -l
of a file from the rsync to see what is happening?