Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] CPIO


>>>>> "George" == George Vieira <georgev@xxxxxxxxxxxxxxxxxxxxxx> writes:

George> Hi all,
George> If my backups ran on a file system level (eg. below), is there a way to tell
George> the `mt` command to forward to xxx possition which is the beginning of a
George> certain backup.??

George> cd /
George> find ./ -mount -depth -print | cpio -ocvB -O /dev/nst0
George> cd /usr/local
George> find ./ -mount -depth -print | cpio -ocvB -O /dev/nst0
George> cd /home
George> find ./ -mount -depth -print | cpio -ocvB -O /dev/nst0

George> How do I got about rewinding and telling `mt` to go to say /home backup? Is
George> it possible?

mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 2

Each time you close the /dev/nst0 device you finish and create a new
file.

mt rewind goes to the start
mt fsf n skips over n end-of-file markers. 

Peter C