LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   can rsync change hardlinks instead of delete-recopy? (http://www.linuxquestions.org/questions/linux-general-1/can-rsync-change-hardlinks-instead-of-delete-recopy-484340/)

allasso 09-17-2006 09:35 AM

can rsync change hardlinks instead of delete-recopy?
 
Hello,

I have been using rsync to make daily backups of a very large home directory to a filesystem on another hard-drive. Whenever a folder is moved or renamed, rsync deletes all the recursive directories and files, then recopies them to the newly named folder.

Is there an argument that will tell rsync to simply change the hardlinks on the destination filesystem instead of deleting/recopy?

I have checked rsync's very good man page, but I don't see anything that tells me it will do that, but I may just be missing something.

thanks, Allasso

macemoneta 09-17-2006 10:46 AM

This should do it:

Code:

-H, --hard-links            preserve hard links


All times are GMT -5. The time now is 05:39 AM.