I'm the beginner of bacula backup solution. I'm trying to backup my website built by wordpress.
This is the Job and FileSet to backup documents root directory.
Job {
Name = WebServerBackup
Pool = File
Client = losttemple-fd
JobDefs = DefaultJob
FileSet = WebServerFiles
}
FileSet {
Name = WebServeFiles
Include {
Options {
signature = MD5
}
File = /var/www
}
}
But the problem is a database, MySQL. Could you please tell me how to backup wordpress website's database by bacula? Is it impossible to backup just some directories?
Thanks. deagh. I need to run script in remote webserver. So I added the RunsOnClient option in RunScript.
RunScript {
RunsWhen = Before
FailJobOnError = Yes
RunsOnClient = Yes
Command = "mysqldump ..."
}