Operating System - HP-UX
1822480 Members
2542 Online
109642 Solutions
New Discussion юеВ

Re: Easy fbackup question

 
SOLVED
Go to solution
Tim Medford
Valued Contributor

Easy fbackup question

I think this will work, but no easy way to test it during the day. I'm wondering if the "e" option in fbackup works for file masks or just folders.

I am backing up a filesystem using fbackup and I want to get all files, except for those ending with .tar

If I put this in the graph file will it work ok?

i /wcis/prod/output
e /wcis/prod/output/*.tar

Thanks in advance,
Tim
4 REPLIES 4
Rick Garland
Honored Contributor

Re: Easy fbackup question

Yes.

The e for exclude
Ermin Borovac
Honored Contributor
Solution

Re: Easy fbackup question

I don't think you can use wildcards in fbackup graph files. You will have to list all files to be excluded by their names.

You can easily test this by using fbackup -f option and providing plain file name instead of tape device file.

$ /usr/sbin/fbackup -f /tmp/backup.fbackup -g graph
morganelan
Trusted Contributor

Re: Easy fbackup question

Hi,

#/usr/sbin/fbackup -0i /wcis/prod/output -e /wcis/prod/output/*.tar -f
Kamal Mirdad
Tim Medford
Valued Contributor

Re: Easy fbackup question

Thanks for the replies.

Ermin - You are correct. It does not appear to work with wildcards.

Graph files contains:
i /wcis_output/prod
e /wcis_output/prod/*.tar

I get this error:
fbackup(1601): could not access -i/-e file /wcis_output/prod/*.tar

I guess I can ls *.tar the directory first and dynamically build the graph file.

Thanks
Tim