Unix : transfering a filesystem or directory

to transfer a filesystem or directory while preserving permissions, special files and such, you can use the following :

# cd sourceDirectory
# tar cpf – . | (cd destinationDirectory && tar xpf – )

The first tar will archive the source directory and pipe it out to the second one which operates the extraction in the destination directory.