backup a dir whith permissions and owner

Hi

How do I tar a map whit his premision and owner data to a dir.tar.gz ?

and how untar that file again?

I need to move a map from server1 to server 2 whith the same fileowner "username".

So I dont want to chmod evry file again. Just tar and untar and then chown for the groupname.

TNX.
regards,
Babak

 

 

 

 

Top