Blog Archives

Recursive copy with tar in Unix/Linux

To recursively copy a directory structure while preserving permissions use the following command from directory containing source_dir: tar cf – source_dir | ( cd destination_dir; tar xfp -) where source_dir is the source directory tree destination_dirĀ  is the destination directory

Tagged with: , , , , , ,
Posted in Linux