SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


netbackuppolicy
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

netbackuppolicy [2013/05/04 13:03] (current)
sjoerd created
Line 1: Line 1:
 += NetBackup Policy =
  
 += Data Selection and Exclude Lists =
 +To access the data paths that should be included in the backup, right click the policy and select '​change'​. Then go to the tab '​Backup Selections':​
 +{{netbackupdataselection01.jpg}} \\
 +
 +== Windows Exclude Lists ==
 +For Windows boxes there is a graphical way of excluding files. To go there, right click the policy and select 'host properties'​. Then go to '​Windows Client'​ and select '​Exclude Lists':​
 +{{netbackupdataselection02.jpg}} \\
 +
 +== AIX Exclude Lists ==
 +For AIX clients there is no GUI way of adding exclude lists. To exclude files you need to create a file on the host. There are a few rules and tips:
 +<​code>​
 +Modification:​
 +An exclude_list file can be created for a specific client, policy or schedule. ​ The exclude_list file must be created by the administrator in the /​usr/​openv/​netbackup directory on UNIX clients.
 +
 +The following options exist when creating an exclude_list file:
 +- Create an exclude_list file if the exclude list will apply to all backups of the client.
 +- Create an exclude_list.<​policy>​ if the exclude list will apply only for a specific policy.
 +- Create an exclude_list.<​policy>​.<​schedule>​ if the exclude list will apply to only one schedule in a policy.
 +NetBackup will use only read the exclude_list file that most closely matches the backup policy and schedule being performed. The <​policy>​ and <​schedule>​ used in the file name must be an exact match to the policy and schedule defined on the master server.
 +
 +The following examples are meant to show different methods to format an exclude_list on a NetBackup client.
 +
 +How to properly exclude a file name by the extension:
 +The following is a valid way to handle file names by extension:
 +
 +*.log
 +
 +*_log
 +
 +This will properly exclude all files and directory names that end in .log or _log. The asterisk character is needed to do the wildcard expansion.
 +
 +The incorrect way to exclude by extension is to use:
 +
 +.log
 +
 +_log
 +
 +This will only match specific file or directory names for .log or _log. Without the asterisk character, there is no wildcard expansion done to match files ending in these entries.
 +
 +How to properly exclude a filename that contains a specific string:
 +The following is a valid way to handle filenames that contain a specific string:
 +
 +*.log.*
 +
 +*_log_*
 +
 +This will match any file or directory name that contains .log. or _log_. The period or underscore has no specific meaning in this example. The asterisk does the wildcard expansion.
 +
 +How to properly exclude a specific filename or directory:
 +The following is a valid way to handle specific file or directory names.
 +
 +log
 +
 +logs
 +
 +This will match any file or directory names called log or logs.  In this case, no asterisk is needed since there isn't any matching to be done.
 +
 +How to use the ? character in an exclude_list entry:
 +A valid way to use the ? character in an exclude_list entry would be:
 +
 +log.??????
 +
 +This would exclude any file that begins with log. and follows with six characters. This would match log.021804 but not match log. since log. must be followed by six characters. The ? is used as a wildcard for any single character in a file or directory name. Each question mark is used to match a single character.
 +
 +How to use the [] characters in an exclude_list entry:
 +A valid way to use the [] characters in an exclude_list entry would be:
 +
 +log[12345]
 +
 +This would exclude the files log1, log2, log3, log4, log5 but would not match log or log12345. The characters inside the [] are used to match any single character that is contained between the [].
 +
 +How to exclude a file or directory that contains a special character:
 +A valid way to exclude files that contain special characters in the name would be:
 +
 +\*logfile\*
 +
 +This would match the file named *logfile* but would not match logfile or any filename that contains logfile. The backslash character will de-reference any of the special characters used in a NetBackup exclude_list.
 +
 +These special characters are:
 +asterisk *
 +comment #
 +square brackets ​ [ ]
 +backslash \
 +question mark ?
 +</​code>​
 +
 +=== Examples ===
 +Exclude file for a specific directory:
 +<​code>​
 +/​usr/​openv/​netbackup/​exclude_list:​
 +/​var/​data/​oracle
 +</​code>​
 +
 += Storage Policy and Temporary Staging Area =
 +The way the data moves around from disk to tape, and how long it will be on the disk is managed by a storage device, which is in fact another policy. To access the policies go into the netbackup administration console and click on storage -> storage units:
 +{{netbackupstorage01.jpg}} \\
 +Double click a policy to view it's settings. In this policy the old backups get cleaned up when the storage is 98% full until it is again on 80%. You can also see where the data is stored on the Windows Filesystem:
 +{{netbackupstorage02.jpg}} \\
 +After clicking '​Staging Schedule'​ in the window above you'll see the settings on how the data gets moved to the tape robot:
 +{{netbackupstorage03.jpg}} \\
 +And the time window for the processes (staging processes):
 +{{netbackupstorage04.jpg}} \\
 +
 +{{tag>​backup}}
netbackuppolicy.txt ยท Last modified: 2013/05/04 13:03 by sjoerd