Re: network copy, preserving hardlinks
"George Georgalis" <[email protected]>
| Newsgroups | gmane.os.netbsd.help |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Feb 22, 2007 at 12:40:21PM -0500, George Georgalis wrote: >On Thu, Feb 22, 2007 at 04:42:17PM +0000, Christos Zoulas wrote: >>In article <[email protected]>, >>George Georgalis <[email protected]> wrote: >>>I have 89 hardlink based snapshots, consisting of a date named >>>prefix directory and some 500,000 files below each prefix. no >>>prefix is over 36GB, but through the use of hardlinks, all the >>>snapshots combined use no more than about 38Gb. >>> >>>Presently they are on a linux reiserfs, and I'm trying to get them >>>over to a NetBSD 3.1 UFS2 partition. rsync with -H, fails with >>>not enough memory, the system has 6Gb RAM. I don't see a preserve >>>hardlinks option with tar. >>> >>>is there another program that can manage the transfer? >> >>I think that tar preserves hard links. Another option is rdist6, but >>it will probably crap out too. > >okay, I'll try tar later, for now the ulimit setting both memory >size and locked memory to unlimited seems to have gotten me over >the problem part. I wasn't expecting ulimit issues as root... in the end, rsync couldn't finish the job but tar worked. ssh root@remote "cd /backups && tar cf - ." | (cd /newbackups && tar xpf -) ...hardlinks preserved. // George -- George Georgalis, systems architect, administrator <IXOYE><