Operating System - HP-UX
1767188 Members
6793 Online
108959 Solutions
New Discussion юеВ

fbackup incremental backups all

 
SOLVED
Go to solution
Michael Schulte zur Sur
Honored Contributor

fbackup incremental backups all

Hi,

I first make a full backup then I make an incremental backup. But the incremental backup saves all the full did. How come?

greetings,

Michael


fbackup -f home0 -0 -g graph.incremental -d datum.incremental -I index0.incremen
tal
fbackup -f home1 -1 -g graph.incremental -d datum.incremental -I index1.incremen
tal
10 REPLIES 10
Massimo Bianchi
Honored Contributor

Re: fbackup incremental backups all

Note that the directory
/var/adm/fbackupfiles must be created prior to the first time fbackup
is used for incremental backups.

Did you created it ?

Massimo
Michael Schulte zur Sur
Honored Contributor

Re: fbackup incremental backups all

Hi,

# ls -l /var/adm/fbackupfiles
total 2
-rwxr----- 1 root sys 246 Nov 19 23:22 dates

you see, it exists.
thanks

Michael
Massimo Bianchi
Honored Contributor

Re: fbackup incremental backups all

Although recent, when you specify the "-d filename" option the fbackup should use the alternate database files.

Where are these files datum.incremental ?

Quoting from "man fbackup"

-d path This specifies a path to a database for use with
incremental backups. It overrides the default database
file /var/adm/fbackupfiles/dates.



Try putting everywhere absolute patchnames...

Massimo
Michael Schulte zur Sur
Honored Contributor

Re: fbackup incremental backups all

Hi,

I just want to figure out, whats wrong. The file is in the directory I start the fbackup. But strangely enough, it doesnt touch it.

thanks,

Michael


# ls -l
total 520
-rw------- 1 root sys 246 Nov 19 23:22 datum.incremental
-rw------- 1 root sys 8 Nov 20 17:07 graph.incremental
-rw------- 1 root sys 130048 Nov 20 17:09 home0
-rw------- 1 root sys 130048 Nov 20 18:27 home1
-rw------- 1 root sys 1645 Nov 20 17:09 index0.incremental
-rw------- 1 root sys 1645 Nov 20 18:27 index1.incremental
Helen French
Honored Contributor

Re: fbackup incremental backups all

To find out if it's a syntax error, try doing a simple full and incremental backup:

# fbackup -f home0 -0 -g graph_file
# fbackup -f home0 -1 -g graph_file

OR, try doing simple bakcups from SAM (it's easy) and find out what's wrong with your syntax or the input files.
Life is a promise, fulfill it!
Hemanth Gurunath Basrur
Honored Contributor
Thierry Poels_1
Honored Contributor
Solution

Re: fbackup incremental backups all

Hi,

you forgot the -u option which updates the database!

Without it all levels will cause a full backup, or will be related to the last update.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Fabio Ettore
Honored Contributor

Re: fbackup incremental backups all

Hi Michael,

Thierry is right!

For example you should use

-full backups:

fbackup -f home0 -u0g graph -d datum.full -I index0.full

-incremental backups:

fbackup -f home1 -u1g graph -d datum.incremental -I index1.incremental

and so on...

graph file contains -i or -e options.

Anyway the most important thing is -u option which creates and updates the database file (default is /var/adm/fbackupfiles/dates).

For your info:

************************************
Incremental saving

The incremental backup is used for saving the data which has been modified
since the last full backup. This means that you do not always have to perform a
full backup with a long run time. The procedure for incremental backups is as
follows:

Full backup specifying a graphfile and the parameters -0 and -u.
-u is used to enter the start and the end of the backup in the file dates. This
file will be required for later incremental backups. An entry is only made in
dates when the backup has been completed successfully.

/var/adm/fbackupfiles/dates

Performing an incremental backup specifying the graphfile. You absolutely must
specify the same graphfile since otherwise the incremental backup produces a
full backup of the specified file system. This also means that the options -i
and -e must not be used.

Fbackup reads during an incremental backup the specifications in dates and
compares these time stamps with each file:

Fbackup saves the file if:
The file's modification date is after the start of the last full backup entered
in the file dates with the same graphfile
************************************

Of course it explains about /var/adm/fbackupfiles/dates, the default file but you can use another file with -d option (you already konw it ;-)).

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Michael Schulte zur Sur
Honored Contributor

Re: fbackup incremental backups all

Hi Thierry,

we have found out by ourselves in the meantime. We have forgotten the -u.

thanks for all comments,

Michael