Recursively copy files and their permissions

# cd /oldir
# tar cf – . | (cd /newdir ; tar xf -)

This is the best way to totally preserve a copy of a directory tree between the current directory and /newdir

This entry was posted in Blog. Bookmark the permalink.

Comments are closed.