Tape/Backup

Most important is, when you start making backups, to think about why
you do it. The way you make backups should support the thing you try to
achieve. Sounds logic but I’ve seen numerous backups made while noone
has a clue how to use them to restore a system. Recovery based backup,
that is what you are looking for.

 

tar xvf /dev/rmt/0m <file’s>
Restore tar-archive from tape
tar cvf /dev/rmt/0m <file’s>
Create tar-archive on tape
tar cf – <dir> | remsh <remote-node> “cd <dir> ; tar xvf -“
rexec rwbu135 “tar cf – /var/opt/diana”|tar xvf –
Two commands to move a directory to another machine. The first write a local archive to standard output., this is piped to the tar extract on the remote server. The second example executes the create remote, extracting is locally. The remote server must be somewhat compatible (blocksize)
mt -t /dev/rmt/0 status
Show the status of the tape-device at /dev/rmt/0
mt -t /dev/rmt/0 fsf
Go to the next file on tape (one tar command creates a tar file on the tape). The tar command opens the first file it finds on tape (hopefully that is a tar-file)

HP
specific

frecover -x X -i <PATH> -i <PATH>
Restore backups partial (-x) made by fbackup relative to current dit
(-X) and only file’s/dir’s specified by (-i)
swpackage -x target_type=tape -vv -s <package>.psf @ <tape dev
file>
Put software package on tape (HP)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.