The unix cp command makes you the owner of the copied files. You can set flags but this is supposedly a more complete way to keep any attributes. mkdir /var/backup/michael cd /home/michael tar cf – . | (cd /var/backup/michael && tar xBfp -) found @ http://info.michael-simons.eu/2007/03/18/copy-directories-and-preserve-permissions/
Categories
Recent Posts
More Info