bacula: Initial version of module.
This commit is contained in:
parent
e7ae4fb55b
commit
4efe6bcd92
12 changed files with 651 additions and 0 deletions
7
bacula/files/bacula_catalog_dump
Executable file
7
bacula/files/bacula_catalog_dump
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# compact database
|
||||
echo "vacuum;" | sqlite3 /srv/bacula/bacula.db
|
||||
|
||||
# dump database to file
|
||||
echo ".dump" | sqlite3 /srv/bacula/bacula.db > /srv/bacula/bacula.sql
|
11
bacula/files/fileset.Catalog.conf
Normal file
11
bacula/files/fileset.Catalog.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
FileSet {
|
||||
Name = "Catalog"
|
||||
Include {
|
||||
Options {
|
||||
signature = MD5
|
||||
}
|
||||
File = "/srv/bacula/bacula.sql"
|
||||
}
|
||||
}
|
||||
|
12
bacula/files/fileset.Default.conf
Normal file
12
bacula/files/fileset.Default.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
FileSet {
|
||||
Name = "Default"
|
||||
Include {
|
||||
Options {
|
||||
signature = SHA1
|
||||
onefs = yes
|
||||
}
|
||||
File = "|sh -c 'mount | awk \"{ if (/^\\/dev\\//) { print \\$3} }\"'"
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue