HEADER
 
  Copying directories recursively and preserving permissions

Say you bught a new hard drive and want to copy the home directories to the new drive, or perhaps you are just using the cp command to create a quick and dirty backup of a directory. Now you got a problem. First, you should do it recursively while the cp command doesn't do it recursively by default. Second, you also need to preserve ownership and permissions. The solution is to use the command the following way:

cp -rp [src] [dest]



 

AFS Protocol Spec v1.0

DAFS API Spec v1.0
(235KB PDF)


Reference Implementations

Red Hat Linux Networking and Security Administration

Red Hat Linux Networking and Security Administration Part 2

The Linux filesystem

The Linux filesystem part 2