Disk-based command to copy dir1 and all subdirectories thereof to dir2 directory and new subdirectories.
Option: dir1 dir2 Use the disk-based command RCP to copy all the files in a directory, including subdirectories, to a new directory. The new directory must already exist, but it may be on a different disk than the original directory. The name of each file is printed as the file is copied.
RCP stands for Recursive CoPy. RCP is a handy program to use for backing up or archiving files from your hard disk.
The example below copies all the files in the directory TRAN_BAK on drive R to the root directory on drive A.
Do not ever use RCP to copy a parent directory to one of its subdirectories. You will fill, and very possibly damage, the disk containing the directories. If you accidentally start such a recursive copy, press ^C ( - ) to halt it.