Forum Discussion

Holger_SCC's avatar
Holger_SCC
Level 3
9 years ago

include_lists not threated recursive by netbackup

Hello,

I need to exclude everything and then include a directory, say /some/directory/thisone

Of course I could simply add it to the include list, then netbackup will backup the directory itself and all files in it - however, it will not backup the content of any subdirectories in it, f.e. /some/directory/thisone/anotherone/some_file

Includes don´t seem to be recursive while excludes are.

If you put /some/filesystem in your exclude_list, everything below (files and directories) will be excluded.

If you put /some/filesystem in your include_list, only files in /some/filesystem will be included. Files in directories won´t be included.

Is there any way to change this behaviour?

 

Let me explain what I want to achive. May someone has a better idea of how to implement this.

I have a cluster that consists of 2 nodes, nodeA and nodeB. Both are netbackup clients and backup their local filesystems normally.

However, there are (so called shared filesystems) that can be mounted on both nodes (however, only on one node at any time, never on both simultaneously).

Say, one shared filesystem is /shared.

When the clustered application is running on nodeA, /shared is also mounted on nodeA.

When the clustered application is switching to nodeB, /shared gets mounted on nodeB.

Now the problem is: Backup and restore of /shared must work anytime, regardless where the application is running (nodeA or nodeB).

I cannot backup /shared normally. In this case, when nodeA backed up /shared and then the application (and filesystem /shared) switches to nodeB, nodeB won´t have access to the backups of /shared.

I resolve it this way:

I define a third backup client on the netbackup master server, say nodeS (for nodeShared).

His IP-Adress is configured on nodeA (as an IP alias) when the app runs on nodeA and on nodeB when the app runs on nodeB.

nodeA and nodeB have an exlude list containing /shared as they shell not backup /shared anymore.

nodeA and nodeB have an exclude list of / (so, everything) for the policy of nodeS.

nodeA and nodeB have an include list of /shared for the policy of nodeS.

 

Works fine. nodeA and nodeB don´t backup /shared to their client/policy anymore.

And /shared gets backuped (and is restorable) on nodeA or nodeB, wherever the ip alias nodeS is currently configured.

However, when someone creates /shared/somedir and puts files there they wont get backuped.

 

How can I tell netbackup to backup everything in /shared including subdirectories using include lists?

Or is there any other way to backup /shared? How is backup on cluster nodes (f.e. AIX HACMP / PowerHA) normally done regarding shared filesystems?

 

13 Replies