Then I try to use dump / restore:
root@kg-quiet# cd /mnt
root@kg-quiet# dump 0af - /media | restore rf -
dump: /media: unknown file system
Tape is not a dump tape
What?
Why is it doing this?
--
Torfinn Ingolfsen,
Norway
Other variations also fails:
root@kg-quiet# dump 0f - /media | restore rf -
dump: /media: unknown file system
Tape is not a dump tape
root@kg-quiet# ( dump 0f - /media ) | ( cd /mnt; restore rf - )
dump: /media: unknown file system
Tape is not a dump tape
Strange.
--
Torfinn Ingolfsen,
Norway
Yeah, but I tried with -0f and -rf too, and goft the same error message.
--
Torfinn Ingolfsen,
Norway
It's not required in dump, but is required in restore.
The error could be due to the /media mountpoint (automatic mount from
hald?). An unmounted filesystem is best. If it's mounted, use the -L
option. Also, -C can help speed it up.
# cd /mnt
# dump -C16 -0af - /dev/ad2s2a | restore -rf -
> >> dump 0f - /media | restore rf -
> >
> > dump -0f - /medi | restore -rf -
> >
> > You're missing the - in your flags.
>
> It's not required in dump, but is required in restore.
No, both dump(8) and restore(8) support the traditional "bundled"
flag syntax also familiar from tar(1).
--
Christian "naddy" Weisgerber na...@mips.inka.de
No HAL installed or running on this machine.
I tried some more, and got it working:
#--- mounting destination ---
root@kg-quiet# mount /dev/ad0s1a /mnt
root@kg-quiet# mkdir -p /mnt/var
root@kg-quiet# mount /dev/ad0s1d /mnt/var
root@kg-quiet# mkdir -p /mnt/tmp
root@kg-quiet# mount /dev/ad0s1e /mnt/tmp
root@kg-quiet# mkdir -p /mnt/usr
root@kg-quiet# mount /dev/ad0s1f /mnt/usr
#--- copy using dump and restore ---
root@kg-quiet# dump -C16 -0af - /dev/ad2s1a | ( cd /mnt; restore -rf - )
DUMP: Date of this level 0 dump: Wed Jan 12 19:48:19 2011
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/ad2s1a to standard output
DUMP: mapping (Pass I) [regular files]
DUMP: Cache 16 MB, blocksize = 65536
DUMP: mapping (Pass II) [directories]
DUMP: estimated 113009 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
warning: ./tmp: File exists
warning: ./usr: File exists
warning: ./var: File exists
DUMP: DUMP: 113008 tape blocks
DUMP: finished in 23 seconds, throughput 4913 KBytes/sec
DUMP: DUMP IS DONE
Perhaps it was the mounted directory which dump choked on?
BTW, thanks for the -C16 hint. Very useful.
--
Torfinn Ingolfsen,
Norway