Re: [Nolug] Fastest way to create a local mirror of a huge tree?

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Wed, 07 Sep 2011 02:00:43 -0500
Message-ID: <4E67169B.80706@cox.net>

On 09/07/2011 12:23 AM, Jimmy Hess wrote:
> On Tue, Sep 6, 2011 at 10:21 PM, Ron Johnson<ron.l.johnson@cox.net> wrote:
>> The mirror doesn't exist yet, so rsync's clever data-minimizing algorithms
>> aren't valid. (Also, there are lots of symlinks that need be preserved.)
>> 1. cp -av /data /mnt/backups/data
>> 2. cd /data&& tar -cvf – . | (cd /mnt/backups/data&& tar -xpvf -)
>> 3. rsync -avz --stats --progress /data /mnt/backups/data
>>
> Netcat + XZ or gzip + CPIO or tar.
>
> nc otherhost portnumber | xz -d | cpio -idm
> find pathname -print | cpio -o -Hnewc | xz -1 | nc -l portnumber
>
> Then rsync to reconcile.
>

The two mount points are local to the same machine.

>
> If on a dedicated partition, consider a block-based tool that won't
> need to traverse the filesystem
> directory structure and won't need to copy unused disk blocks, e.g. partimage.
>

Does that work over LVM?

Anyway, I want to *mirror* the structure, not wind up with a disk image
or tarball.

-- 
Supporting World Peace Through Nuclear Pacification
___________________
Nolug mailing list
nolug@nolug.org
Received on 09/07/11

This archive was generated by hypermail 2.2.0 : 09/07/11 EDT