Uncategorized

Recursively copy files and their permissions

By February 24, 2004 June 4th, 2015 No Comments

# 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