Operating System - HP-UX
1827808 Members
12436 Online
109969 Solutions
New Discussion

Backup using fbackup utility

 
SOLVED
Go to solution
maxell_1
Frequent Advisor

Backup using fbackup utility

This is my first time using the fbackup command and am not sure on few things:

1) How do I ensure that my tape drive is up and connected?
2) Is it possible to perform fbackup to a file rather than to a tape? If it is, what is the command?

Thanks
6 REPLIES 6
Jeeshan
Honored Contributor

Re: Backup using fbackup utility

>>How do I ensure that my tape drive is up and connected?

#mt -t /dev/rmt/Xmn status

>>Is it possible to perform fbackup to a file rather than to a tape? If it is, what is the command?

yes you can do it. check the man pages

#man fbackup
a warrior never quits
maxell_1
Frequent Advisor

Re: Backup using fbackup utility

Hi ahsan,

Will this command suffice to perform fbackup to a file?

fbackup -f /tmp/backup_file -g var/adm/fbackupfiles/gfile

Thanks
Jeeshan
Honored Contributor
Solution

Re: Backup using fbackup utility

try this syntax

#fbackup -i /sysinfo -f /tmp/file_out
a warrior never quits
sujit kumar singh
Honored Contributor

Re: Backup using fbackup utility

that is OK u can do that.

#ioscan -fnCtape will show u all the tape drives connected to ur system.
these will show as /dev/rmt/0mn
/dev/rmt/1mn /dev/rmt/2mn if u have multiplae drives connected.

Remember that device files in teh iosacn listing for tapes /dev/rmt/1mn /dev/rmt/1m
etc refer physically to the same tape drive and /dev/rmt/1mn and /dev/rmt/0mn are different Tape drives.

as stated in the preceeding post u can use

#mt -t /dev/rmt/0mn status
to see that the Tape drive is ONline or not

put a media in the drive and again
#mt -t /dev/rmt/0mn status
to see if media is shown in the drive.

#mt -t /dev/rmt/0mn rewind
this will rewind the media

this is how u can check the tape devices in the system and media status of them.


2)once u r done with u can give fbackup command to take the backup like this for example:



#fbackup -0 -v -u -i /etc -i /usr -e /usr/lib -f /dev/rmt/0mn


this is to take alevel 0 that is Full backup of the diectories as included using -i option that is here /etc and /usr but will exclude the directory /usr/lib that is expressed with the -e option on teh tape device /dev/rmt/0mn which is given by -f option and will update the internal database of the fbackup operations that fbackup keeps as we have given the -u commans option




Sujit
maxell_1
Frequent Advisor

Re: Backup using fbackup utility

Thanks Guys for the speedy clear replies.

Happy new year!
sujit kumar singh
Honored Contributor

Re: Backup using fbackup utility

#fbackup -0 -v -u -i /etc -i /usr -e /usr/lib -f /tmp/backup.files


this is to take alevel 0 that is Full backup of the diectories as included using -i option that is here /etc and /usr but will exclude the directory /usr/lib that is expressed with the -e option on teh directory /tmp/backup.files on the disk. which is given by -f option and will update the internal database of the fbackup operations that fbackup keeps as we have given the -u commans option



fbackup shall fail if for the files that u have specified for backing up u do not have enough space to keep the backup.\


Sujit