Actions
Bacula¶
Reference¶
- MySQL backup http://dev.mysql.com/doc/refman/5.1/en/backup-methods.html
- What is Bacula http://www.bacula.org/en/dev-manual/main/main/What_is_Bacula.html
- Ubuntu Bacula https://help.ubuntu.com/10.04/serverguide/C/bacula.html
- Bacula on disks http://www.bacula.org/en/dev-manual/main/main/Basic_Volume_Management.html
Instructions¶
- Install the database
sudo apt-get install mysql-server
- postfix: internet site
- Set the root db password to: thirtysomethinglads
- Because the database is not running yet, you will get an error if you try to install bacula first
- Install bacula
sudo apt-get install bacula
Config files¶
- Edit
/etc/bacula/bacula-sd.conf
- Set this line in the
Device
entryStorage { # definition of myself Name = backup.dev.ru.is-sd SDPort = 9103 # Director's port WorkingDirectory = "/var/lib/bacula" Pid Directory = "/var/run/bacula" Maximum Concurrent Jobs = 20 SDAddress = 130.208.209.39 }
- Set this line in the
- Edit
/etc/bacula/bacula-dir.conf
- Set the Address line in the
Storage
Storage { Name = File # Do not use "localhost" here Address = backup.dev.ru.is # N.B. Use a fully qualified name here SDPort = 9103 Password = "Igz3_-w2AWuatsrX6dwmLcvClzlBwsqd4" Device = FileStorage Media Type = File }
- Create a test fileset
FileSet { Name = "LocalhostFiles" Include { Options { signature = MD5 compression = GZIP } File = /etc File = /home } }
- Create a schedule for this job
# LocalhostBackup Schedule -- Daily Schedule { Name = "LocalhostDaily" Run = Full daily at 00:01 }
- Now create the job
Job { Name = "BackupServer" JobDefs = "DefaultJob" Schedule = "LocalhostDaily" }
- Set the Address line in the
- Really, you should just go look at the files on stekkjarstaur (bacula-dir)
Errors and Issues¶
If you get permission denied when connecting to the storage server, you need to fix the SDAddress to be an IP address.
http://www.brandonking.net/blog/2006/08/31/bacula-failed-to-connect-to-storage-daemon/
This is true for both the sd and the fd
Updated by Joseph Foley over 9 years ago · 1 revisions