Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Saturday 2 June 2012

HP-UX 11i

backup and recovery




1. To backup a filesystem :
# fbackup -f /dev/rmt/0m -i /home

2. To list the contents of the tape media and store it in a file :
# frecover -I /tmp/indexfile -f /dev/rmt/0m

3. To do level 0 (full) backup of a filesystem and also update the file /var/adm/fbackupfiles/dates :
# fbackup -f /dev/rmt/0m -0 -u /home

4. To do a level 1 backup using a graph file to specify which files will be included/excluded :
# fbackup -f /dev/rmt/2m -1 -u -g /var/adm/fbackupfiles/graphs/g0

Graph file content may look like
i /data
e /data/tmp

5. To backup to the tape drive on the remote server :
# fbackup -f host1:/dev/rmt/0m -v -i /home

6. To backup data to two tape drives (one by one) :
# fbackup -f /dev/rmt/0m -f /dev/rmt/1m -i /data

7. To restore all the files from the tape media
# frecover -v -r -f /dev/rmt/0m

8. To show the tape drive status :
# mt -f /dev/mt/0mnb status

9. To eject a tape :
# mt -f /dev/mt/0mnb offline

10. To rewind the tape media :
# mt -f /dev/rmt/0mnb rewind