Saturday, March 17, 2007

How to copy files using tar without a tar file / How to tar and untar without a tar file.

# why do this, well tar keep the ownership and permission of the files
# where cp -r will make everything own by the user doing the copy.

(cd / ; tar cf - home) | (cd /newhome; tar xvf -)

No comments: