Difference between revisions of "SAC:Bacula"

From OSGeo
Jump to navigation Jump to search
m (Add staging.www)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
As of 2017 Bacula server runs on the [[SAC:Backups]] host.
 
As of 2017 Bacula server runs on the [[SAC:Backups]] host.
  
= Configuration =
+
As of 2023 Bacula version 9.4 is running.
 +
 
 +
Overview of components can be found here: https://www.bacula.org/9.4.x-manuals/en/main/What_is_Bacula.html#SECTION00220000000000000000
  
Configuration as of June, 2011
+
The backup.osgeo.org machine is acting as the `Bacula Director`
  
A Full copy is made every Sat. with incremental backups nightly.
+
= Configuration =
  
This consists of the following directories:
+
As of November 2023 Bacula director configuration is under ansible.
    File = /boot
+
For full details, see https://git.osgeo.org/gitea/sac/ansible-deployment/src/branch/master/deployment/roles/bacula-director
    File = /etc
+
(private repo)
    File = /var/www
 
    File = /home
 
    File = /osgeo
 
    File = /var/lib/mysql
 
    File = /var/lib/postgresql
 
    File = /var/lib/dpkg
 
    File = /var/lib/aptitude/pkgstates
 
From each of the following machines:
 
* wiki, secure, web, staging.www, webextra, backup, qgis, projects, adhoc
 
  
Trac currently gets trac_backup.zip which is generated during the daily backup cycle
+
Specific configuration of the file/tape storage is in the Storage director /etc/bacula/bacula-sd.conf
 +
* Bacula uses the hard drive as a series of Tape drives.
 +
* Each Volume is a predetermined size (~500MB currently), when a volume fills bacula makes the next one.
 +
* Volumes older than a certain date or when volume increments have reach a configured maximum can be recycled into the available disk pool.
  
 
= Administration =
 
= Administration =
  
General configuration is managed in /etc/bacula/bacula-dir.conf.
+
To review the backups and perform a restore you can use the [https://www.bacula.org/7.4.x-manuals/en/console/Bacula_Console.html bconsole application]:
  
To review the backups and perform a restore you can use the [http://www.bacula.org/5.2.x-manuals/en/console/console/index.html bconsole application]:
 
 
   sudo bconsole
 
   sudo bconsole
  
Specific configuration of the file/tape storage is in the Storage director /etc/bacula/bacula-sd.conf
+
Once in console:
* Bacula uses the hard drive as a series of Tape drives.
+
 
* Each Volume is a predetermined size (~500MB currently), when a volume fills bacula makes the next one.
+
    list jobs #lists all jobs
* Volumes older than a certain date or when volume increments have reach a configured maximum can be recycled into the available disk pool.
+
    list job=BackupWiki  #list all jobs with specific name and shows the dates and job id of each
 +
    list joblog jobid=21541 #list details of a job like how many bytes backed up, date and # of files backed up
 +
    list files jobid=21541 #Lists the actual files backed up in this run
 +
    list clients #list all job clients (each is dedicated to servicing a particular backup
 +
    run job=BackupWeb18a #manually triggers a named job to run and will return the job id
  
 
= Recovery =
 
= Recovery =

Latest revision as of 10:06, 13 November 2023

As of 2017 Bacula server runs on the SAC:Backups host.

As of 2023 Bacula version 9.4 is running.

Overview of components can be found here: https://www.bacula.org/9.4.x-manuals/en/main/What_is_Bacula.html#SECTION00220000000000000000

The backup.osgeo.org machine is acting as the `Bacula Director`

Configuration

As of November 2023 Bacula director configuration is under ansible. For full details, see https://git.osgeo.org/gitea/sac/ansible-deployment/src/branch/master/deployment/roles/bacula-director (private repo)

Specific configuration of the file/tape storage is in the Storage director /etc/bacula/bacula-sd.conf

  • Bacula uses the hard drive as a series of Tape drives.
  • Each Volume is a predetermined size (~500MB currently), when a volume fills bacula makes the next one.
  • Volumes older than a certain date or when volume increments have reach a configured maximum can be recycled into the available disk pool.

Administration

To review the backups and perform a restore you can use the bconsole application:

 sudo bconsole

Once in console:

   list jobs #lists all jobs
   list job=BackupWiki  #list all jobs with specific name and shows the dates and job id of each
   list joblog jobid=21541 #list details of a job like how many bytes backed up, date and # of files backed up
   list files jobid=21541 #Lists the actual files backed up in this run
   list clients #list all job clients (each is dedicated to servicing a particular backup
   run job=BackupWeb18a #manually triggers a named job to run and will return the job id

Recovery

  • If you use bconsole to recover data bacula does the work of finding the files you want and pulling them out of the various volumes.
  • Directory for recovered files is set in the bacula-dir.conf under:
Job {
 Name = "RestoreFiles"
 Type = Restore
 Client = backup.osgeo.osuosl.org-fd
 FileSet = "Full Set"
 Storage = File
 Pool = Default
 Messages = Standard
 Where = /tmp/bacula-restores
}
sudo bconsole
*restore

Then follow the prompts, using the above linked guide to help find the files you want.