full incremental backup confusion

34 views
Skip to first unread message

moose

unread,
Jan 8, 2020, 8:58:45 AM1/8/20
to bareos-users
Hi folks,

I defined to kind of jobs for each machine I want to backup:
  • a full backup job
  • a incremental backup job
Furthermore I use different pools and volumes related to the backup type.

Full backups work fine like expected - no problems.

Starting my first incremental backup after an already performed full backup creates a further full backup but using incremental pool and volumes. The second and all following incremental backups on the other hand really perform as incremental backups.

Error messages from 1st incremental backup performed as full backup:

2020-01-08 14:36:59bareos-dir JobId 35: No prior Full backup Job record found.
2020-01-08 14:36:59bareos-dir JobId 35: No prior or suitable Full backup found in catalog. Doing FULL backup.

But the full backup really exists, have a look:

+-------+-----------------+---------+---------------------+------+-------+----------+-------------------+-----------+
| jobid | name            | client  | starttime           | type | level | jobfiles | jobbytes          | jobstatus |
+-------+-----------------+---------+---------------------+------+-------+----------+-------------------+-----------+
|    34 | bareos-full-1m  | bareos  | 2020-01-08 14:29:05 | B    | F     |   50,934 |     2,793,407,421 | T         |
|    35 | bareos-incr-1m  | bareos  | 2020-01-08 14:37:01 | B    | F     |   50,935 |     2,802,456,353 | T         |
|    36 | bareos-incr-1m  | bareos  | 2020-01-08 14:49:59 | B    |     |       80 |       270,945,443 | T         |
+-------+-----------------+---------+---------------------+------+-------+----------+-------------------+-----------+

So why doesn't bareos don't find it?

Any idea
what's going wrong?

Thanks in advance,

moose

Brock Palen

unread,
Jan 8, 2020, 12:23:23 PM1/8/20
to bareos-users
Moose,

Don’t create two jobs, they are seen as unique and will be treated as such.

Create one job, and then have a scheule when you want to do a full/inc/diff.

or if you are doing a manual run you can override on the CLI, but it will also auto upgrade an incremental to a full if no prior full exists.

Eg. Classic job with schedule

Job {
Name = "BackupMyth"
JobDefs = "DefaultJob"
Accurate = "yes"
FileSet = “Myth”
}

JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = myth-fd
FileSet = "mls_std" # selftest fileset (#13)
Schedule = "ServerCycle"
Storage = File
Messages = Standard
Allow Duplicate Jobs = no
Accurate = yes
Priority = 4
Write Bootstrap = "/var/lib/bareos/%c.bsr"
Spool Data = yes
Pool = Incremental
Full Backup Pool = Full # write Full Backups into "Full" Pool (#05)
Differential Backup Pool = Differential # write Diff Backups into "Differential" Pool (#08)
Incremental Backup Pool = Incremental # write Incr Backups into "Incremental" Pool (#11)
}

Schedule {
Name = "ServerCycle"
Description = "For servers and other over night backups"
Run = Full Jan,Apr,Jul,Oct 1st sun at 1:05
#Run = Differential 2nd-5th sun at 23:05
Run = Incremental Jan,Apr,Jul,Oct 2nd-5th sun at 2:05
Run = Incremental Jan,Apr,Jul,Oct mon-sat at 2:05
Run = Incremental Feb,Mar,May,Jun,Aug,Sep,Nov,Dec sun-sat at 2:05
}



For Always incremental the settings are a little different, but the concept is the same, in the Job you specify the pools for Full, Incremental, etc you want (I use a default for all classic backs, and another default for Always Incremental) and in the Schedule you say when you want them to run and at what level.

If your doing Always Incremental let me know.


Brock Palen
1 (989) 277-6075
bro...@mlds-networks.com
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting
> --
> You received this message because you are subscribed to the Google Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/9c5a81ba-07f1-4f25-8db1-06a3690c1c34%40googlegroups.com.

moose

unread,
Jan 8, 2020, 1:49:04 PM1/8/20
to bareos-users
Hi Brock,

many thanks for your quick reply and your very informative *.conf files. I feel very glad having got them.

I'll give it a try. If it doesn't work (what I don't beleave ;-) ) I'll get back to this topic.

Greetinx,

moose
Reply all
Reply to author
Forward
0 new messages