On 9/4/21 1:50 PM, neumei...@mail.de wrote: > Hello bacula-community, > i have a question. I've read that chapter of the bacula-documentation: > https://www.bacula.org/11.0.x-manuals/en/main/Automated_Disk_Backup.html > It states:"Now since each of these different kinds of saves needs to > remain valid for differing periods, the simplest way to do this (and > possibly the only) is to have a separate Pool for each backup type.". > The Tutorial uses three pools, a incremental one, a differential one, > and a full one to accomplish a basic GFS-scheme-backup. I got my > bacula-Installation running with multiple clients/file-deamons and do my > backups on a harddrive. > > *My questions:* > I am wondering if there is a possibility to use four pools with a added > second incremental-pool? > > *The problem I see:* > is that an incremental backup always references the last incremental-, > differential- or full-backup and saves only the files that have changed > since then. In my scheme i have two different incremental-backups, the > daily and the weekly one. The weekly one always references the daily one > that came the day before(saturday), right? When i keep the weekly one > around for more than 4weeks(i have chosen 5weeks) and the daily one only > for more than 10 days(i have chosen 14days) the daily files are going to > be deleted after 14days but the monthly one still references them. So > there will be a "hole" in the backupset? > > I figured out, if it would be possible to have multiple "levels" of > incremental-backups, like i could say that the weekly incremental-backup > references only the weekly backups(level0) and the daily > incremental-backups only the daily ones(level1) the problem would be > gone. The same problem would occur when i would keep the full-backup for > to short around. For example if the full backup overwrites the only > existing one, there will be no full backup left, that the > differential-backup could reference and I lose all backups i made to > that point.
A Bacula incremental Job references the most recent backup *of any level* of the same Job. If you had another incremental that used a different pool, it would have to be a different job, and then it would reference the last completed backup of *that* job. If you are doing a "daily" and a "weekly" incremental of the same job, then the "weekly" either isn't really "weekly" or isn't really incremental. Unless what you're trying to do is somehow have one incremental job receive special treatment and have a longer retention time than other incremental jobs. It's not quite clear what you mean, or what you're trying to accomplish. What I do is the following: I run an incremental backup six nights a week (which is based upon the last incremental or higher run of that Job, so it records all changes since the previous night), with one month retention time. The seventh night, once per *week*, I run a Differential backup (based upon the last Differential or higher, so it records all changes since the last Differential or Full), with two months retention time. Once per *month*, I run a Full backup (which rebases everything), which has six months retention. And then finally after the Full backup, I run a Copy job which copies the Full backup to removable disks in a separate Pool with one year retention, which are then stored offline (and air-gapped). Now what you COULD do, I suppose, is run a Copy job once a week which copies the most recent Incremental volume(s) to a separate pool with longer expiration. But those copied incrementals would then reference incremental jobs that quite possibly wouldn't exist any more by the time you came to need to refer to them, and you would have succeeded in setting up exactly the "hole in the backup set" situation you appear to be trying to avoid. So don't do that. What it sounds like to me is that your "weekly incremental" job should be a Differential job, and your monthly job should be either a Full, or a Differential followed by a Virtual Full. Your Full backup should never "overwrite the only existing one" unless you're doing something wrong or you only have enough backup space to store one Full backup at a time, in which case you have a deeper problem than trying to fudge retention times. It is *possible* that the situation here is that you are asking the wrong questions because you don't properly understand the terms. You may be misunderstanding the purpose and behaviors of the different Job levels. If in doubt, ask. We're always happy to answer. -- Phil Stracchino Babylon Communications ph...@caerllewys.net p...@co.ordinate.org Landline: +1.603.293.8485 Mobile: +1.603.998.6958 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users