xfs
[Top] [All Lists]

Re: xfsdump with rmt

To: Ethan Benson <erbenson@xxxxxxxxxx>
Subject: Re: xfsdump with rmt
From: ivanr@xxxxxxx
Date: Mon, 17 Sep 2001 17:20:31 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20010916230730.K2522@plato.local.lan>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Sun, 16 Sep 2001, Ethan Benson wrote:

> TAPE="dump@xxxxxxxxxxxxxxxxxx:/local/backup/dump/dilbert-home.dump.$1"
>
> i don't have a tape drive so a regular file is the only option, this
> works fine with ext2 dump and as far as i can tell from the docs it
> should work with xfsdump as well.
>
> > One thing though ... is "/path/name" actually "/dev/tape" or some other
> > "/dev" device?  xfsdump does a little sanity check on the path, and it
> > expects to see "/dev/".
>
> that is not possible, unless i do something hideous like create
> symlinks in /dev to the regular files in /local.  i shouldn't have to
> do that.

Unfortunately, as it stands, xfsdump will not write to an arbitrary,
remote file -- it must be in /dev.  I'm not sure of the reason for this,
but you can work around the problem fairly easily, eg:

  xfsdump -f - /home | rsh socrates.local.lan -l dump dd 
of=/local/backup/dump/dilbert-home.dump.$1

or another example, this time from socrates:

  rsh othermachine "xfsdump -f - /home" > 
/local/backup/dump/dilbert-home.dump.$1

If you'd rather fix the source, check cmd/xfsdump/librmt/rmtopen.c line
80.

Ivan

-- 
Ivan Rayner
ivanr@xxxxxxx


<Prev in Thread] Current Thread [Next in Thread>