[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Goncalo Sousa
I configured this way on /etc/bareos/bareos-dir.d/job/server.conf Job { Name = "server-job" Client = server-fd Type = Backup Level = Incremental FileSet = "server-fs" Schedule = "schedule" Storage = server-sd Messages = Standard Pool = pool-server Priority = 10 Write

[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Goncalo Sousa
Basically edit /etc/bareos/bareos-dir.d/job/server.conf and add 'ClientRunBeforeJob=/path/to/script/in/client' is this it? segunda-feira, 9 de Março de 2020 às 12:26:02 UTC, Andrei Brezan escreveu: > > Just look at the documentation: >

[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Andrei Brezan
Just look at the documentation: https://docs.bareos.org/Configuration/Director.html#job-resource You can have Client Run Before Job and Client Run After Job. -- Andrei On Monday, 9 March 2020 13:19:31 UTC+1, Goncalo Sousa wrote: > > And how do I set to execute the script on the client? > > For

[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Goncalo Sousa
And how do I set to execute the script on the client? For example: The script is located on the client and I want to execute it from it? sexta-feira, 6 de Março de 2020 às 16:32:46 UTC, Andrei Brezan escreveu: > > You need to put the script as the value: > > RunBeforeJob="/path/to/my/script" >

Re: [bareos-users] Howto move postgresql to another share?

2020-03-09 Thread Spadajspadaj
Every way is safe as long as you prepare for it :-) But seriously, you have two main options 1) Do a database dump and restore to a bigger server. (the "logical migration") 2) Stop the postgresql service, make a new filesystem on a bigger device, move the database files there and mount the

[bareos-users] Howto move postgresql to another share?

2020-03-09 Thread 'DUCARROZ Birgit' via bareos-users
Hi list, I wonder how it is the safest way to move my database from /var/lib/postgresql to a bigger disk Actually my local disk /dev/sdb1 has a size of 157G and the database consumes already 80G. In 2 months I will be out of space. Please can you help me? I'm a total newbe with postresql

Re: [bareos-users] Struggling with FileSet Configuration for Wildcard directories in Path

2020-03-09 Thread Andreas Rogge
Am 05.03.20 um 10:44 schrieb Julian Meyer: > Hi, > > im struggling with setting up a FileSet Configuration for a Cassandra > Database Server. The Target is to backup the configuration of the server > and the snapshot (= dumps of database) directories. Add a second Include{}-Block to your

[bareos-users] Re: Struggling with FileSet Configuration for Wildcard directories in Path

2020-03-09 Thread Julian Meyer
Hi, I found a solution that worked for me. I use a external program to find the directories: File = /etc File = /opt File = "\\|find /var/lib/cassandra/data -mindepth 2 -maxdepth 3 -type d -name snapshots" maybe this helps some other people Regards Julian Am Donnerstag, 5.