On 7/25/06, Dave Howorth <dhoworth@mrc-lmb.cam.ac.uk> wrote:
I'm trying to get cp to copy some directory structures that contain hard links (yes, yet another backup scenario). cp has two features that seem nice:
(1) It can copy structures with hardlinks correctly (--preserve=links or perhaps even just -d)
(2) It can copy incremented structures. That is, if you copy a structure, then you add some more to the source structure, then copy the structure again, it will handle it.
But it looks like (1) and (2) don't coexist. If some new files are hardlinks to old ones, they aren't linked in the copy.
Does anybody know a way to make this work?
Thanks, Dave
PS Before anybody says "use rsync", I was, but ... there are rather a lot of files. I had to give it 12 GB of swap space to build its list and it was taking well over 24 hours to run. I can't give it 24 hours :(
Dave, I assume my previous suggestion to try rdiff-backup also blew-up? It does not use rsync, but instead uses a very rsync like algorythm so it may not have the same issue with a large number of files. Also, the rdiff-backup list has at least some traffic, so a post there might get you a work around or a developer looking into it. http://www.nongnu.org/rdiff-backup/savannah.html#mailing_list HTH Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com