how backup multiple filesystems onto 1 tape using backup by i-node ?

how backup multiple filesystems onto 1 tape using backup by i-node ?

Post by Bruno Misseeu » Mon, 12 Oct 1998 04:00:00



I quote from man/info :
"Use the backup command when you want to back up large and multiple file
systems"

How can I achieve this, backing up multiple filesystems onto one tape using
the
backup (by i-node) command... Infoexplorer and man don't give any examples
on backing
up multiple filesystems (using backup),  at least I couldn't find any.

Who can point me in the right direction?

TIA,
Bruno

ps: AIX version : 4.1.5 & 4.2--

--

Coca-Cola Enterprises Services, Brussels

 
 
 

how backup multiple filesystems onto 1 tape using backup by i-node ?

Post by Michael Ben » Thu, 15 Oct 1998 04:00:00


Bruno

you can always use one of the non-rewind devices in AIX such as rmt0.1

You need to use 'tctl' to control the tape properly so the following should
backup two directories to tape.  You could use 'tar','cpio', or 'backup'
just the same.

tctl -f /dev/rmt0.1 rewind                                Rewinds the tape
in rmt0
cd directory1                                                  Makes pwd the
first directory
tar cvf /dev/rmt0.1 .                                        Backs up the
first directory, rmt0.1 prevents the tape rewinding at the end of the backup
cd directory2                                                  Makes pwd the
second directory
tar cvf /dev/rmt0.1 .                                        Backs up the
second directory
tctl -f /dev/rmt0.1 unload                                Rewinds the tape
and ejects it.

Some tape drives may not respond to the 'unload' so you may need to replace
this with a 'rewind'.

If you want to restore the second volume from the tape you would do the
following:

tctl -f /dev/rmt0.1 rewind                                Rewinds the tape
in rmt0
tctl -f /dev/rmt0.1 fsf 2                                    Skip to the
second volume on the tape
tar xvf /dev/rmt0.1                                           Restore some
data

At the end of this the tape will be after the end of the second volume.

If you need to use 'backup' instead of 'tar' you will need to replace the
tar commands with the appropriate 'backup' commands.

Hope this assists!

Michael Benn
Technical Director
Datawright Computer Services Limited

----------------------------------------------------------------------------
--------------------------------------------------

>I quote from man/info :
>"Use the backup command when you want to back up large and multiple file
>systems"

>How can I achieve this, backing up multiple filesystems onto one tape using
>the
>backup (by i-node) command... Infoexplorer and man don't give any examples
>on backing
>up multiple filesystems (using backup),  at least I couldn't find any.

>Who can point me in the right direction?

>TIA,
>Bruno

>ps: AIX version : 4.1.5 & 4.2--

>--

>Coca-Cola Enterprises Services, Brussels