Copying hard-linked tree structure
jw at pegasys.ws
Tue Jan 6 22:31:26 GMT 2004
On Tue, Jan 06, 2004 at 03:34:49AM -0600, Max Kipness wrote:
> Hope this isnt' too off topic...
> I have a tree structure on one server similar to the following:
> /Current holds the most recent rsynced data, and the date directories
> are created with cp -al on a daily basis so they are hard-linked. I'm
> going back 60 days.
> The question is how can I move this entire structure to a new server and
> preserve the links from the date directories to the /Current directory?
You can either copy the entire structure at once with a tool
that preserves hard links or it may be possible to use
rsync --link-dest to move one at a time.
Myself, i'd use cpio over an ssh pipe.
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync