Operating System - HP-UX
1836772 Members
2133 Online
110109 Solutions
New Discussion

Re: what backup command to incrementally backup files

 
張朝家
Occasional Advisor

what backup command to incrementally backup files

Dear all

Generally I use tar or cpio to backup some file.
If I want incrementally to backup these file as backup database, for example, to do a full backup and some increment backup

What back command I casn use

May be tar or cpio call some arguments
can use,but not automatic

4 REPLIES 4
vinod_25
Valued Contributor

Re: what backup command to incrementally backup files

Hi

fbackup command is the solution...

for more info...look at the url

http://docs.hp.com/en/B2355-90691/fbackup.1M.html

All the Best !!!

Vinod K
Patrick Wallek
Honored Contributor

Re: what backup command to incrementally backup files

tar and cpio are not capable of doing incremental backups. You could make them do it, but it would require a LOT of scripting.

As mentioned above, fbackup would be your best bet. fbackup can handle fulls and incrementals with no problems.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: what backup command to incrementally backup files

There is an option in tar which might be of your help.

tar -u

This will tar only the updated files and leave the rest.
Vibhor Kumar Agarwal
Bharat Katkar
Honored Contributor

Re: what backup command to incrementally backup files

Hi,
As explained earlier "fbackup" is the command avaible on HPUX to do incremental backups. You can use it as:

# fbackup -v -g gfile -u -2 -f /dev/rmt/0m

Here /dev/rmt/0m is your backup device. -u option updates /var/adm/fbackupfiles which keeps track of the history of the files. Now that if you are executing this for the first time it will be a full backup and not incremental. -g is used to backup selected files specified in gfile which is a normal text file.

Now in order to take incremental backup next time you need to change the level to 3 and then all files modified since level 2 backup will only be backuped during level 3 backup.

# fbackup -v -g gfile -u -3 -f /dev/rmt/0m

See man fbackup for more details.

Hope that helps.
Regards,



You need to know a lot to actually know how little you know