Subject: Re: [vserver] Hashify and efficient cross-server copying
From: Jeff Jansen <jeff.jansen@kkoncepts.net>
Date: Thu, 26 Aug 2010 18:14:11 +0800

Gordan Bobic <gordan@bobich.net> wrote on 2010-Aug-26:
> Is there an efficient way to copy hashified data across hosts? e.g.
> using tar or rsync?
> 
> I want to have a backup host that I can periodically rsync data to, but
> would like to avoid having to re-hashify the files at the destination
> since they will already be hashified at source.

If you rsync the directory where your vservers all "live" and include the "-H"
switch, then rsync will create the hard links on the target side.

Something like:

rsync -avH --delete --numeric_ids /vservers/ target:/vservers/

HTH

Jeff Jansen