ca_backup - Global Filter Options

Using filters you can include or exclude specific files and directories from your backup jobs. Use the filters to help focus on the files you want. Filters can be applied globally (to the entire job), at the node level (to a specific node), or at the volume level (to a specific filesystem). The position of the -filter switch in the ca_backup command determines the filter level applied.

Important! Incorrect use of filters can result in data being omitted during the backup. Use care when specifying or applying filters!

The ca_backup command includes the following filter options:

ca_backup [-filter

[<include|exclude> <file|dir> <pattern>]]

[<include|exclude> [<attribute> [hidden] [readonly] [system] [archive]]]

[<include|exclude> [<date> <modify|create|access> <onorbefore|onorafter <mm/dd/yy[yy]>>]]

[<include|exclude> [<date> <modify|create|access> <between <mm/dd/yy[yy]> <mm/dd/yy[yy]>>]]

[<include|exclude> [<date> <modify|create|access> <within <count> days|months|years>>]]

[<include|exclude> [<size> <equalto|greaterthan|lessthan> <size val> <Bytes|KBytes|MBytes|GBytes>]]

[<include|exclude> [<size between <<low size val> <Bytes|KBytes|MBytes|GBytes>> <<high size val> <Bytes|KBytes|MBytes|GBytes>>]

include

Results will contain only those files that satisfy the filter specifications. For example, if you select to back up your entire local hard drive, and then set up a filter to include files in the \SYSTEM directory. The result would be that Arcserve Backup would only back up files from your \SYSTEM directory. No other files would be backed up.

exclude

Exclusions always take precedence over inclusions. For example, if you add a filter to include files that have an .exe extension, and add another filter to exclude your \SYSTEM directory, then all the .exe files in the \SYSTEM directory would be excluded.

file|dir <pattern>

Specifies to include or exclude files or directories based on the specified pattern.

attribute [hidden] [readonly] [system] [archive]

Specify to include or exclude files with the specified file attribute.

date <modify|create|access> <onorbefore|-onorafter <mm/dd/yy[yy]>>

Specifies to include or exclude files that were modified, changed, or accessed on or before the specified date, or on or after the specified date.

date <modify|create|access> <between <mm/dd/yy[yy]> <mm/dd/yy[yy]>>

Specifies to include or exclude files that were modified, changed, or accessed between the specified dates.

date <modify|create|access> <within <count> days|months|years>

Specifies to include or exclude files that were last modified, changed, or accessed within the specified number of days, months, or years.

size <equalto|greaterthan|lessthan> <size val> <Bytes|KBytes|MBytes|GBytes>

Specifies to include or exclude files whose size is equal, greater or less than the specified size.

size between <<low size val> <Bytes|KBytes|MBytes|GBytes>> <<high size val> <Bytes|KBytes|MBytes|GBytes>>

Specify to include or exclude files whose size is within the specified size range.

Note: For the Global Filter options, the following conditions exist:

More information:

ca_backup - Examples