Puppet Class: bareos::profile::director::fileset
- Defined in:
- manifests/profile/director/fileset.pp
Overview
Class: bareos::profile::director::fileset
Default filesets
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'manifests/profile/director/fileset.pp', line 3
class bareos::profile::director::fileset {
::bareos::director::fileset {'BareosCatalog':
description => 'Backup the catalog dump and Bareos configuration files.',
include => {
'Options' => {
'Signature' => 'MD5'
},
'File' => [
'/etc/bareos', # configuration
'/var/lib/bareos'
]
},
exclude => {
'File' => [
'/var/lib/bareos/storage'
]
}
}
::bareos::director::fileset {'LinuxAll':
description => 'Backup all regular filesystems, determined by filesystem type.',
include => {
'Options' => {
'Signature' => 'MD5',
'One FS' => 'no', # change into other filessytems
# filesystems of given types will be backed up
# others will be ignored
'FS Type' => [
'btrfs',
'ext2',
'ext3',
'ext4',
'reiserfs',
'jfs',
'xfs',
'zfs'
],
},
'File' => [
'/',
]
},
# Things that usually have to be excluded
# You have to exclude /var/lib/bareos/storage
# on your bareos server
exclude => {
'File' => [
'/var/lib/bareos',
'/var/lib/bareos/storage',
'/proc',
'/tmp',
'/.journal',
'/.fsck',
'/var/tmp',
'/var/cache',
'/var/lib/apt',
'/var/lib/dpkg',
'/var/lib/puppet',
# # Ignore database stuff; this will need to be handled
# using some sort of a dump script
'/var/lib/mysql',
'/var/lib/postgresql',
'/var/lib/ldap',
]
}
}
::bareos::director::fileset {'WindowsAll':
enable_vss => true,
include => {
'Options' => {
'Signature' => 'MD5',
'Ignore Case' => 'yes',
'Drive Type' => 'fixed', # do backup only hard disks
'WildFile' => '"[A-Z]:/pagefile.sys"',
'WildDir' => [
'"[A-Z]:/RECYCLER"',
'"[A-Z]:/$RECYCLE.BIN"',
'"[A-Z]:/System Volume Information"'
],
'Exclude' => 'yes',
},
'File' => [
'/',
]
}
}
}
|