changing default location of bareos.sql

30 views
Skip to first unread message

DUCARROZ Birgit

unread,
Feb 28, 2020, 10:30:44 AM2/28/20
to bareos...@googlegroups.com
Hi,

I would like to change the default location of the bareos.sql dump to
another share.

I changed in
/usr/lib/bareos/defaultconfigs/bareos-dir.d/fileset/Catalog.conf

and in
/etc/bareos/bareos-dir.d/fileset/Catalog.conf


and restarted the services.
But the dump is still writing into /var/lib/bareos

what am I missing?

Kind regards,
Birgit

Urban Persson

unread,
Feb 28, 2020, 12:57:26 PM2/28/20
to bareos-users
Hi

I this case you need to change in the script that runs before and after the backupjob
In "/usr/lib/bareos/scripts/make_catalog_backup.pl" you find the following line: 
my $wd = "/var/lib/bareos";

wd = working directory

I guess you need to change even in the cleanup script running after job,
"/usr/lib/bareos/scripts/delete_catalog_backup"

Then, NOT to forget you need to change the backupjobs Fileset, and add yur new path to your database dumpfile here in File=:

FileSet {
  Name = "Catalog"
  Description = "Backup the catalog dump and Bareos configuration files."
  Include {
    Options {
      signature = MD5
    }
    File = "/var/lib/bareos/bareos.sql" # database dump
    File = "/etc/bareos"                   # configuration
  }
}


Good luck!

// Urban

DUCARROZ Birgit

unread,
Mar 2, 2020, 5:42:46 AM3/2/20
to bareos...@googlegroups.com

--> ok I found it. I changed the my $wd = "/path/to/dir"
in /usr/lib/bareos/scripts/make_catalog_backup.pl

hope this is the right way to do it.
Anyway, it works.
Reply all
Reply to author
Forward
0 new messages