On Sun, Mar 19, 2006 at 06:25:28PM -0600, [EMAIL PROTECTED] wrote:
> i made what i thought would be a fine backup of a freebsd-6.0 machine
> using dump. more specifically i issued a
>
> # dump -0f - /usr | ssh -o 'EscapeChar none' [EMAIL PROTECTED] "cat >
> /usr/dumps/usr.fs"
>
> this created usr.fs on my openbsd backup host. now that i'm trying to
> restore the dump on my backup host, which i now realize i should have
> tested prior to wiping the drive of the old machine, i am getting the
> following messages:
>
> # cat usr.fs | restore -rf -
> restore: Tape is not a dump tape
> # restore -i usr.fs
> restore: /dev/rst0: Device not configured
>
> this is disheartening and makes me worried :(. i hope i have not hosed
> my backup, but i am inclined to say that i haven't broken anything
> since i've done this before when setting up CGD on netbsd (see
> http://www.s-mackie.demon.co.uk/unix-notes/NetBSD-CGD-Setup.html ) and
> there were no issues there. could there be some problem with a dump
> from freebsd-6.0 not restoring on openbsd-3.7, i.e. if i reinstalled
> freebsd-6.0 on another machine, could i restore the dumps?
>
> thx for reading, quick replies appreciated.
While I do not know if Open- and FreeBSD are compatible in this regard -
though it makes little sense not to be, *unless* you were using a
filesystem that OpenBSD does not understand, it should work.
That being said, the proper syntax for restore is restore -rf usr.fs,
but while the first is another unnecessary use of cat, only the second
is really wrong. So that doesn't help either.
Provided that you didn't do something strange when copying the dump, it
should - at least - be restorable on something that closely resembles
the platform it was taken on (FreeBSD-6.x).
And, for the next time: tar is far more portable.
Joachim