General

Ever wanted to copy your entire filesystem into another including all the links and permissions?

Say we have a filesystem in /filesystem.

We wanna duplicate that filesystem to a new filesystem in /destination.

cs /filesystem

tar -cf - . |(cd /destination ; tar -xpvf - )

 

Enjoy!