Today i n installed a new linux server , and after setting my servers i take system backup on my dat by writing a shell script in follwoing way
root#vi sysbackup.sh
mt -f /dev/st0 rewind
dump -0uf /dev/nst0 /
dump -0uf /dev/nst0 /boot
dump -0uf /dev/nst0 /home
dump -0uf /dev/nst0 /opt
dump -0uf /dev/nst0 /tmp
dump -0uf /dev/nst0 /usr
dump -0uf /dev/nst0 /var
echo "Backup Completed!"
:wq
root# Now executing my script resulted in completed file system backup on tape.
root#vi sysbackup.sh
mt -f /dev/st0 rewind
dump -0uf /dev/nst0 /
dump -0uf /dev/nst0 /boot
dump -0uf /dev/nst0 /home
dump -0uf /dev/nst0 /opt
dump -0uf /dev/nst0 /tmp
dump -0uf /dev/nst0 /usr
dump -0uf /dev/nst0 /var
echo "Backup Completed!"
:wq
root# Now executing my script resulted in completed file system backup on tape.