Web Hosting Talk







View Full Version : How synchronize ONLY ownership/group permissions?


Shiek
09-17-2003, 06:02 AM
I ran into a small problem where I used cp -Rf , but forgot the "p" (doh)

And well I need the permissions/ownership to transfer too, but this is a massive amount of files, and will take even longer to do so AGAIN.

So I am asking, is there a way to use rsync to synchronize ONLY ownership/pemissions from one dir to another without having to overwrite the entire file again, I have tried:

rsync -rpogt --existing /olddrive/root/etc/valiases /etc/valiases

Not working :-/

Thanks.

wKkaY
09-17-2003, 11:47 AM
(note: rsync -a is a shortcut for rsync rlptgoD)

maybe you can try :

rsync -a --dry-run --verbose /olddrive/root/etc/valiases/* /etc/valiases/

when you're sure that its working the way you want it to , you can remove the dry-run and verbose switches .