hello,
i use `restore' command quite often to restore individual
files but not on OpenBSD but AIX.
I'm trying to do the same on OpenBSD but I'm failing, how to
do that on OpenBSD?
Imagine you `dump' a FS and then you need to recover some files.
# df -h /
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 96.4M 69.9M 21.7M 76% /
# dump -0af /tmp/root.dump /dev/rsd0a
DUMP: Date of this level 0 dump: Sun Aug 21 22:13:45 2011
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rsd0a to /tmp/root.dump
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 72646 tape blocks.
DUMP: Volume 1 started at: Sun Aug 21 22:13:45 2011
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 73963 tape blocks on 1 volume
DUMP: Date of this level 0 dump: Sun Aug 21 22:13:45 2011
DUMP: Volume 1 completed at: Sun Aug 21 22:13:59 2011
DUMP: Volume 1 took 0:00:14
DUMP: Volume 1 transfer rate: 5283 KB/s
DUMP: Date this dump completed: Sun Aug 21 22:13:59 2011
DUMP: Average transfer rate: 5283 KB/s
DUMP: Closing /tmp/root.dump
DUMP: DUMP IS DONE
# restore -tf root.dump | egrep "\./etc/pf\.conf$"
Level 0 dump of an unlisted file system on t400.example.com:/dev/rsd0a
Label: none
3789 ./etc/pf.conf
# restore -xf root.dump './etc/pf.conf'
restore: ./etc: File exists
You have not read any tapes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #:
And here I'm failing, why volume?
Thank you for tips.
jirib