1845949 Members
2903 Online
110250 Solutions
New Discussion

Re: Incremental fbackup

 
SOLVED
Go to solution
Hicham EL HARTI
Occasional Contributor

Incremental fbackup

The following script should run an incremental backup from monday to saturday and full backup on sunday:
=================================
DAY=`date +%A`
FILENAME=`date +%d%m%y`

case $DAY in
Monday|Tuesday|Wednesday|Thursday|Friday|Saturday)
/usr/sbin/fbackup -1 -u -f /lhome/backup/$FILENAME.dmp -g /lhome/backup/graph.txt ;;


Sunday)
/usr/sbin/fbackup -0 -f /lhome/backup/$FILENAME.dmp -g /lhome/backup/graph.txt ;;
esac
========================================
the incremental backup dosn't work. The cronjob runs but as a full backup.

The directory /var/adm/fbackupfiles and the file on it dates exist.

#more /var/adm/fbackupfiles/dates
/lhome/backup/graph 1 1135182863 1135182877
STARTED: Wed Dec 21 17:34:23 2005 ENDED: Wed Dec 21 17:34:37 2005
/lhome/backup/graph.txt 1 1135288801 1135289170
STARTED: Thu Dec 22 23:00:01 2005 ENDED: Thu Dec 22 23:06:10 2005

Any idea?

Thanks in advance!
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: Incremental fbackup

Hi:

I believe that you need to add '-u' to the full backup run too.

Regards!

...JRF...
Tvs
Regular Advisor

Re: Incremental fbackup

Hi,

Try to add -u option in the fullbackup to update the backupdates .

If fbackup is used for incremental backups, a database of past backups
must be kept. fbackup maintains this data in the text file
/var/adm/fbackupfiles/dates, by default. Note that the directory
/var/adm/fbackupfiles must be created prior to the first time fbackup
is used for incremental backups. The -d option can be used to specify
an alternate database file. The user can specify -u option to update this file
when an fbackup session completes successfully. Entries for each
session are recorded on separate pairs of lines

regards

tvs
Raj D.
Honored Contributor

Re: Incremental fbackup

Hi Hicham,

Seems you need to use -u option , enable to update the database of past backups.
-u also -v can be use and redirect to a logfile to check further.

hth ,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "