Using tar to copy files and preserve permissions

From Stack Overflow
Jump to: navigation, search
tar cf - * | ( cd /target; tar xfp -)
Personal tools