creating, listing, and restoring from SYSBACK stacked backups on tape

Technote (FAQ)


Question

This technote gives details on how to create, list, and restore from stacked backups on tape.

Answer


Key flags:
-e: Append a backup to an existing backup tape
-i: Specify sequence backup number to access for queries or restores


STACKING BACKUPS

Use the -e flag to append a backup to an existing backup tape, for example for directory backups:

    # mkdirback -f /dev/rmt0 -x -e /test/dir1
    # mkdirback -f /dev/rmt0 -x -e /test/dir1
    # mkdirback -f /dev/rmt0 -x -e /test/dir2


LISTING STACKED BACKUPS

If you don't know how many backups are on the tape, or which sequence # to use, list header information for all backups on the tape with sbeot, for example:
    # sbeot -f rmt0

    Rewinding rmt0 ...
    Reading volume label ..

    Counting the total number of backup images on the tape(s).
    This could take a while...

    Forwarding past "3" sysback created backups...
    *********************************************
    Backup 1

    Date: Mon Nov 21 14:34:15 2011
    User: root
    Host: rs77
    Type: File/Directory
    Data: /test/dir1
    Packed: N
    Buffer: 64 Kbytes
    Bkend: B
    Lang: C
    Volume: 1
    Backup Volume: 1
    Image Number: 1
    *********************************************

    Skipping 1 tape file marks ...

    *********************************************
    Backup 2

    Date: Fri Nov 25 12:42:15 2011
    User: root
    Host: rs77
    Type: File/Directory
    Data: /test/dir1
    Packed: N
    Buffer: 64 Kbytes
    Bkend: B
    Lang: C
    Volume: 1
    Backup Volume: 1
    Image Number: 1
    *********************************************

    Skipping 1 tape file marks ...

    *********************************************
    Backup 3

    Date: Fri Nov 25 12:51:17 2011
    User: root
    Host: rs77
    Type: File/Directory
    Data: /test/dir2
    Packed: N
    Buffer: 64 Kbytes
    Bkend: B
    Lang: C
    Volume: 1
    Backup Volume: 1
    Image Number: 1
    *********************************************

    Skipping 1 tape file marks ...

    Successfully reached end of the data on the Backup tape(s)...


If you know the sequence # on the tape that you want to use, you can use the -i flag to specify which backup sequence to list the header from, for example, to list header information for the third backup on a tape:
    # readsbheader -i 3 -f rmt0

    Reading volume label ..
    Forwarding to backup sequence #3 ..
    Date: Fri Nov 25 12:51:17 2011
    User: root
    Host: rs77
    Type: File/Directory
    Data: /tmp/dir2
    Packed: N
    Buffer: 64 Kbytes
    Bkend: B
    Lang: C
    Volume: 1
    Backup Volume: 1
    Image Number: 1


RESTORING FROM STACKED BACKUPS

Use the -i flag to specify which backup sequence to restore from, for example, to restore from the third backup on a tape:
    # sysrestore -f /dev/rmt0 -i 3 -t Directory -vx /tmp/dir2

    Rewinding rmt0 ...
    Retrieving backup header information ..
    Checking backup contents ..

    Restoring files ...
    Reading backup of Files "/tmp/dir2 "
    Created on Fri Nov 25 12:51:17 2011
    Created by root at rs77

    ESTIMATED PROGRESS
    -------------+--------------------+------------------+--------------
    % Complete | Elapsed Time | Megabytes | Kbytes/Sec
    -------------+--------------------+------------------+--------------
    N/A | 0 minutes | < 1 | 127

    Backup ended Fri Nov 25 12:51:17 2011
    0 megabytes read from 1 volume.
    x ./tmp/dir2
    x ./tmp/dir2/file1.jar
    x ./tmp/dir2/file2.smp
    x ./tmp/dir2/file3.smp
    x ./tmp/dir2/file1.opt
    x ./tmp/dir2/file2.sys

    SUCCESS: Restore completed successfully

Rate this page:

(0 users)Average rating

Document information


More support for:

Tivoli Storage Manager for System Backup and Recovery

Software version:

All Versions

Operating system(s):

AIX

Software edition:

Edition Independent

Reference #:

1573207

Modified date:

2014-09-22

Translate my page

Machine Translation

Content navigation