Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 232007

Copy a directory (for backup) to another location


To copy a directory to another location, for backup purpose, you can use the -a flag, which copy directory recursively, keep all file attributes but never follow symbolic links.

# cp -a source_directoey target_directory

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>