Remove old jobs from Bareos database / Modify job'level

2,834 views
Skip to first unread message

Михаил Дорожкин

unread,
Sep 29, 2015, 11:46:15 AM9/29/15
to bareos-users
Hi!

I was restore bareos database on a new server and i wanna manually run Full backup jobs of my clients.
But database contain information about earlier jobs so jobs runs as Incremental level.

I tried login to bconsole and run "delete jobid=" for all jobs for current client. (i use this method on other Bareos server and it works!)
But jobs stay at database!
"status client=" shows this jobids.

So i decided run script that run modified jobs. In script i modify only Level=Full.
But if i set in modified job Level=Full then Pool is modified too.

For example:

bconsole

*run job=auth-dc6-backup-tacacs
Using Catalog "MyCatalog"
Run Backup job
JobName: auth-dc6-backup-tacacs
Level: Incremental
Client: auth-dc6-fd
Format: Native
FileSet: fileset-auth-dc6-tacacs
Pool: I-auth-dc6 (From Job IncPool override)
Storage: File-bacula-dc6-01-storage01 (From Job resource)
When: 2015-09-29 18:32:49
Priority: 10
OK to run? (yes/mod/no): mod

Then i change Level from Incremental to Full and i got next:

JobName: auth-dc6-backup-tacacs
Level: Full
Client: auth-dc6-fd
Format: Native
FileSet: fileset-auth-dc6-tacacs
Pool: Incremental (From Job FullPool override)
Storage: File-bacula-dc6-01-storage01 (From Job resource)
When: 2015-09-29 18:33:24
Priority: 10
OK to run? (yes/mod/no):

Why Pool became "Incremental (From Job FullPool override)" from "I-auth-dc6 (From Job IncPool override)" ?

I don't want to change Pool. Pool have to stay same!

How i do it?

Or how i correct remove old jobs from database?

Thanks!

Best regards,
Mikhail

Михаил Дорожкин

unread,
Sep 29, 2015, 11:48:53 AM9/29/15
to bareos-users
I forgot.

OS - CentOS 7.1

I use PostgreSQL.
postgresql-9.2.13-1.el7_1.x86_64
postgresql-server-9.2.13-1.el7_1.x86_64

bareos-storage-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-director-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-client-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-database-common-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-database-tools-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-filedaemon-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-common-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-database-postgresql-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64
bareos-bconsole-15.3.0.git.1442769849.a934352-1153.1.el6.x86_64

Philipp Storz

unread,
Oct 2, 2015, 9:27:58 AM10/2/15
to bareos...@googlegroups.com
Am 29.09.2015 17:46, schrieb Михаил Дорожкин:
> Hi!
>
> I was restore bareos database on a new server and i wanna manually run Full backup jobs of my clients.
> But database contain information about earlier jobs so jobs runs as Incremental level.
>
> I tried login to bconsole and run "delete jobid=" for all jobs for current client. (i use this method on other Bareos server and it works!)
> But jobs stay at database!
> "status client=" shows this jobids.

This information comes from the client itself. It is stored in the client' state file, NOT in the
database.

You already achieved what you want at this point.
--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com Fax: +49 221 63 06 93-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, M. Außendorf,
J. Steffens, P. Storz, M. v. Wieringen
Reply all
Reply to author
Forward
0 new messages