1. Create and system backup (-X expands /tmp if required):

2. Create file with map file and system backup:

3. Create system data but excludes the files listed in /etc/exclude.rootvg:


1. Create / file:


1. Create system boot backup to the CD-R device /dev/cd1 (mksysb):

2. Create backup of VG datavg to CD-R device /dev/cd1 (savevg):

# mkcd -d /dev/cd1 -v datavg


1. Create image file and backup vg datavg (path = /tmp/vgdata/datavg/

savevg -i -f /dev/rmt0 datavg

2. Create datavg backup but exclude files listed in the /etc/exclude.datavg:

# savevg -ef  /dev/rmt0 datavg


1. Backup entire system to rmt0:

# find / -print | backup -ivf /dev/rmt0

2. Backup /home directory to rmt0 with backup level 0:

# backup -0vf /dev/rmt0 /home


1. List the archive in rmt0:

2. Restore /home from archive in device rmt0:

# restore -xvf /dev/rmt0 /home

3. Restore particular file from /export/mksysb image:

# restore –xvf /export/mksysb ./etc/sshd.conf

4. Restor only a file attribute from tape:

# restore -Pa -vf /dev/rmt0 ./etc/passwd

5. Archive /home directory:

# find ./home -print |cpio -ocvumB > /dev/rmt0

6. Restore cpio archive from rmt0:


1. List the contents of cpio archive from rmt0:

2. Restore /home directory from rmt0:


1. Archive /home to rmt0 device:

# tar -cvf /dev/rmt0 /home

2. List the archives in rmt0:

3. Extract /home from rmt0:

# tar -xvf /dev/rmt0 /home


1. Convert and copy ascii file to ebcdic file2:

# dd if=file1 of=file2 conv=ebcdic

2. Copy 31st block and paste to 1st block in the hd4 ( fix currupted superblock by restoring it’s backup copy to original location):

# dd count=1 bs=4k skip 31 seek=1 if=/dev/hd4 of=/dev/hd4

3. To copy blocks from rmt0 with 512 blocks to rmt1 with 1024 blocks:

# dd if=/dev/rmt0 ibs=512 obs=1024 of=/dev/rmt1


1. To rewind the tape:

# tctl -f /dev/rmt0 rewind

2. To eject the tape:

# tctl -f /dev/rmt0 offline

3. To show the status of tape:

# tctl -f /dev/rmt0 status


1. To copy contents of 1st tape(tape0) to 2nd tape(tape1). It is useful when the size of the tapes are different:

# tcopy /dev/rmt0.0 /dev/rmt1.0

2. To show no. of files and block size in the tape:


1. To change the block size of the tape to 51201:

# chdev -l rmt0 -a block_size=512