| | 147 | |
| | 148 | Create a !FileSet resource for each particular set of files that you want to use in your backup jobs. In this example, we’ll create a !FileSet that only includes the home and etc directories: |
| | 149 | {{{ |
| | 150 | FileSet { |
| | 151 | Name = "Home and Etc" |
| | 152 | Include { |
| | 153 | Options { |
| | 154 | signature = MD5 |
| | 155 | compression = GZIP |
| | 156 | } |
| | 157 | File = /home |
| | 158 | File = /etc |
| | 159 | } |
| | 160 | Exclude { |
| | 161 | File = /home/bacula/not_important |
| | 162 | } |
| | 163 | } |
| | 164 | }}} |
| | 165 | |
| | 166 | There are a lot of things going on in this file, but here are a few details to keep in mind: |
| | 167 | |
| | 168 | '''The !FileSet Name must be unique[[BR]] |
| | 169 | |
| | 170 | '''Include any files or partitions that you want to have backups of[[BR]] |
| | 171 | |
| | 172 | '''Exclude any files that you don’t want to back up, but were selected as a result of existing within an included file[[BR]] |
| | 173 | |
| | 174 | You can create multiple !FileSets if you wish. Save and exit, when you are finished. |
| | 175 | |
| | 176 | Now we’re ready to create backup job that will use our new !FileSet. |