HP-UX UNIX Backup and Recover Data to Tape Device Using fbackup Command


Backup data using fbackup command

Backup your /data directory to /dev/rmt/0m by typing
# fbackup -i /data -I index.data -f /dev/rmt/0m

Where,
-i /data : Backup /data directory. There is no limit on how many times the -i option can be specified i.e. -i /data -i /home -i /path/to/something

-I index.data : index.data specifies the name of the on-line index file to be generated. It consists of one line for each file backed up during the session. Each line contains the file size, the volume number on which that file resides, and the file name. If the -I option is omitted, no index file is generated.


-f /dev/rmt/0m : Specify tape device name

-e /tmp : Exclude /tmp from backup

-g /var/adm/fbackupfiles/hporabox11.backup.list.txt : File that contains a list of files / dirs to be included / excluded from the tape backup

-u : Update the database of past backups so that it contains the backup level, the time of the beginning and end of the session, and the graph file used for this fbackup session. Only use this if you are using -g /path/to/file option.


Using the normal tape location to do a full backup, insert a new tape and enter:

# fbackup -f /dev/rmt/0m -i -v

Using the normal tape location to do a full backup but exclude /tmp and /cdrom /nfs directories, insert a new tape and enter:

# fbackup -f /dev/rmt/0m -i / -e /tmp -e /cdrom -e /nfs -v

You can also create a text file that contains a list of all files and directories to be included or excluded from the backup. For example, backup full file system but exclude /tmp, /cdrom and /nfs, enet:

# cd /var/adm/fbackupfiles
# vi hporabox11.backup.list.txt

Append following list
i /
e /tmp
e /nfs
e /cdrom

Save and close the file.

To backup enter,
# fbackup -f /dev/rmt/0m -g /var/adm/fbackupfiles/hporabox11.backup.list.txt -v

2 comments:

  1. This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it, recover deleted files from USB

    ReplyDelete
  2. Nice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.

    FBackup Crack

    ReplyDelete