LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-17-2006, 09:35 AM   #1
Registered: Oct 2003
Distribution: debian
Posts: 35

Rep: Reputation: 15
can rsync change hardlinks instead of delete-recopy?


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
Old 09-17-2006, 10:46 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
This should do it:

 -H, --hard-links            preserve hard links


info, rsync

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cd image with hardlinks kvtournh Linux - Software 2 08-27-2006 05:22 AM
Lotsa hardlinks - how do I find the others? humbletech99 Linux - General 6 11-27-2005 01:27 PM
cant delete or change a file slack66 Slackware 4 10-31-2005 12:04 AM
rsync --delete question Red Squirrel Linux - Software 2 10-10-2005 09:55 PM
mountig - change ro to rw, delete directory, change rw to ro ?? itsjustme Linux - General 6 10-17-2003 11:48 AM

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration