1827519 Members
3264 Online
109965 Solutions
New Discussion

fbackup

 
SOLVED
Go to solution
Norman_21
Honored Contributor

fbackup

hi again,

I want to exclude and include some files from two different
directories.

e.g) fbackup -v -g /backup/graph -f /dev/rmt/0m

inside the graph file:
i /backup/mydir/*.dat
i /backup/other/mydir/*.dat
e /backup/mydir/*.bak
e /backup/other/mydir/*.idx

will this going to work. I just want to make sure and if yes, what will be the frecover
command.

Thanks in advance.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
15 REPLIES 15
Rajeev  Shukla
Honored Contributor
Solution

Re: fbackup

Yes this will work. You can always have a graph file to include and exclude directories or files. And while restoring you'll use the same option (-g) with the graph file for restore. If you just specify include directory and only that will be restored and rest excluded.

See the man pages for more details on frecover. Also one good option -N with -v just list files in backup but doesn't actually restore on to disk.

Rajeev
T G Manikandan
Honored Contributor

Re: fbackup

Yes using the -g graph file option you can iclude and exclude the directories for backup and restore.

Things are right and it will work.

Also for the frecover option you have to use the same -g option to restore the selected files and directories using the i-include and e-exclude as defined in the graph file.

There is no default graph file as such so make sure that you give the absolute path of the graph file because when the frecover does not find the graph file it restores the entire tape.

check these two documents.might be useful

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063197953
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064209593
Norman_21
Honored Contributor

Re: fbackup

Hi Rajeev,

Thanks for the reply. However,
I get the following msg:

Could not access -i/-e file /backup/other/mydir/*.idx
could not access -i/-e file /backup/mydir/*.bak
could not open the dates file /var/adm/fbackupfiles/dates

appreciate your prompt reply.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
T G Manikandan
Honored Contributor

Re: fbackup

I am not sure whether you are taking incremental backup.

If that is the case use the -u option with the incremental level of backup like
-u 0 (full backup)
-u 1 (files modified from the 0 level)

0 level backup (full backup)

fbackup -v -f /dev/rmt/0m -u -0 -g > /tmp/fbackup.log 2>&1

-u option updates the /var/adm/fbackupfiles/dates file.
So when you take the incremental backup the fbackup refers this file and checks the timestamp and takes only the modified files from that time.

Revert

T G Manikandan
Honored Contributor

Re: fbackup

Also from the man pages of fbackup

//*
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 to update this file when an fbackup session completes successfully
*//

Rajeev  Shukla
Honored Contributor

Re: fbackup

Hi AB,

It is saying "Could not access -i/-e file /backup/other/mydir/*.idx" because this file doesn't exist. I mean check the path and the file type *.idx there might be no files of that kind in that path.
And "could not open the dates file /var/adm/fbackupfiles/dates " it says because the user which is doing fbackup doesn't have permission to write into this dates file or may be in the directory /var/adm/fbackupfiles he doesn't have permission.
Please check both these conditions thats where the problem is.

Rajeev
Norman_21
Honored Contributor

Re: fbackup

I'm not doing increamental backup. This is the first time I run the fbackup in this system.I normaly use tar.
but because I wanted to all files under the /backup/mydir
and under /backup/other/mydir
except *.bak and *.idx
.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: fbackup

Thanks Rajeev again,

But the file is there and I'm
a super user " root "!
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: fbackup

by the way, the directory
fbackupfiles/dates is not existed.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
T G Manikandan
Honored Contributor

Re: fbackup

drwxr----- 2 root sys 96 Jun 3 2000 fbackupfiles
-rwxr----- 1 root sys 122 Jun 3 2000 dates

As permissions look above only the root user has all the permissions.
How are you running the fbackup.
Please show your command and also the permissions on these files.
As Rajeev pointed out,please check whether the *.dat and *.idx files are there in the dir

Thanks
T G Manikandan
Honored Contributor

Re: fbackup

Then create the directory and the file as per the permissions given in the previous post and try again.


Thanks
T G Manikandan
Honored Contributor

Re: fbackup

I am not sure whether fbackup can determine wildcards.


Please remove the asterisk(*) and try specifying the entire-filename in your graph file.
T G Manikandan
Honored Contributor

Re: fbackup

Ofcourse yes

fbackup does not support wildcards
remove the wildcard from the graph file and specify the entire file-name in the list.

You can just write a script to grep the .idx and .dat files from the specified path.


Norman_21
Honored Contributor

Re: fbackup

Thanks guys for the support
it is working fine. It was just the fbackupfiles/dates were not available besides
the wild card issue.
Thanks again.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: fbackup

Closed...
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003