Hi,
im struggling with setting up a FileSet Configuration for a Cassandra
Database Server. The Target is to backup the configuration of the server
and the snapshot (= dumps of database) directories.
I like to have this structure in my Backup:
/etc/ <- All Files and directories below
/opt/ <- All Files and directories below
/var/lib/cassandra/data/.*/.*/snapshots/* <- All Files under the snapshot
directory, not before. But here have the wildcards in the path to be
resolved.
Example for the cassandra wildcard snapshots:
/var/lib/cassandra/data/<databasse1>/<table_a>/snapshots/db_file.1
/var/lib/cassandra/data/<databasse1>/<table_a>/snapshots/db_file.2
/var/lib/cassandra/data/<databasse1>/<table_a>/snapshots/db_file.3
/var/lib/cassandra/data/<databasse1>/<table_b>/snapshots/db_file.1
/var/lib/cassandra/data/<databasse1>/<table_b>/snapshots/db_file.2
/var/lib/cassandra/data/<databasse2>/<table_c>/snapshots/db_file.1
/var/lib/cassandra/data/<databasse2>/<table_c>/snapshots/db_file.2
/var/lib/cassandra/data/<databasse2>/<table_c>/snapshots/db_file.3
I know, I have to use excludes. I've tried many ways, but don't get it to
run....
FileSet {
Name = "LinuxDB_Cassandra"
Include {
Options {
Signature = MD5 # calculate md5 checksum per file
One FS = No # change into other filessytems
Compression = GZIP # Default of GZIP = GZIP6
FS Type = btrfs
FS Type = ext2 # filesystems of given types will be backed up
FS Type = ext3 # others will be ignored
FS Type = ext4
FS Type = reiserfs
FS Type = jfs
FS Type = xfs
FS Type = zfs
}
File = /etc
File = /opt
File = /var/lib/cassandra/data
Options {
RegexFile = "/var/lib/cassandra/data/.*/.*/.*"
exclude = yes
IgnoreCase = yes
}
}
}
I'm Using bareos 18.2.5 on Ubuntu 18.04 LTS
Hope someone can help me, or give me a good hint.
Best Regards,
Julian
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/c594748d-0448-477e-8cdb-de0d3efd0205%40googlegroups.com.