LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy Symbolic Link (https://www.linuxquestions.org/questions/linux-newbie-8/copy-symbolic-link-249712/)

subaruwrx 11-01-2004 01:48 AM

Copy Symbolic Link
 
Say I wanna backup my root directory but inside have various files such as anjuta compiled from source. How do I copy so that even the symlink is also copied as it is?

TigerOC 11-01-2004 04:45 AM

The command is cp -ax ( see this guide as an example) . If you want an on-going backup I would suggest rsync. The advantage with rsync is that will update the files when used as opposed to doing the stuf from scratch which can take a long time. If you want further details I will happily oblige. I backup my /home partition hourly using rsync and about once a month do a system backup using PartImage to make an image.


All times are GMT -5. The time now is 12:19 AM.