Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Marcin Haba
Hello Everybody,

Yes, I am coming. Thanks for calling me here :-)

Baculum / Bacularis always use full as a base + incremental or
differential backups.

In the restore wizard close to the radio button with the "Selected
backup" restore method there is green help icon where is described the
way how this method works:

"Note: if you select incremental or differential backup, on the next
step will be also loaded all directories and files from older backups
required to do the job restore. In other words, the selected backup
determines time point from which will be loaded the selected backup
and other older backups (incremental, differential) backups up till
closest full backup."

If you don't use the restore from copy jobs function, Baculum will put
your selected jobid to the following bconsole command:

.bvfs_get_jobids jobid=XXXJOBIDXXX

that determines all single backup jobids needed to do a consistent data restore.

If you want to restore using copy jobs function Baculum will use own
algorithm to determine jobids because of an old bug in
.bvfs_get_jobids command described here:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2500

Best regards,
Marcin Haba (gani)

On Sat, 28 Oct 2023 at 01:26, Bill Arlofski via Bacula-users
 wrote:
>
> On 10/27/23 16:17, Chris Wilkinson wrote:
> > Having looked at the job log from a Baculum restore I can see that it is 
> > going back to the last full and restoring full,
> > diffs, incrs in order.
> >
> > Is it not possible to restore from a particular job alone in Baculum as is 
> > possible with bconsole?
>
> Knowing Bacula, and knowing Marcin, I am sure there must be a way.
>
> Let's wait for Marcin to chime in. :)
>
>
> Best regards,
> Bill
>
> --
> Bill Arlofski
> w...@protonmail.com
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Bill Arlofski via Bacula-users

On 10/27/23 16:17, Chris Wilkinson wrote:

Having looked at the job log from a Baculum restore I can see that it is going 
back to the last full and restoring full,
diffs, incrs in order.

Is it not possible to restore from a particular job alone in Baculum as is 
possible with bconsole?


Knowing Bacula, and knowing Marcin, I am sure there must be a way.

Let's wait for Marcin to chime in. :)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Bill Arlofski via Bacula-users

On 10/27/23 16:09, Chris Wilkinson wrote:
>

Yes Bill that is very helpful.


Glad I could help!


It is exactly as you say when I use bconsole restore. That works. I must have made a mistake when I tried with bconsole 
previously.


I'm not able to reproduce that behaviour using Baculum, it always restores from a full irrespective of the level of the job 
being restored. There doesn't seem to be an equivalent of selecting a specific job ID.


This is a question for Marcin. I will ping him to make him aware of this 
discussion. :)



I take your point about schedule being unwanted but it shouldn't do any harm. 
I'll take it out for tidiness :).


Well, if your specified Schedule has no `Run` lines, then "No harm, no foul"™, otherwise you will have a failed restore job 
every time it runs with this in the joblog:

8<
Fatal error: Cannot restore without a bootstrap file.
You probably ran a restore job directly. All restore jobs must be run using the 
restore command.
8<

:)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Chris Wilkinson
Having looked at the job log from a Baculum restore I can see that it is
going back to the last full and restoring full, diffs, incrs in order.

Is it not possible to restore from a particular job alone in Baculum as is
possible with bconsole?

-Chris-

On Fri, 27 Oct 2023, 23:09 Chris Wilkinson,  wrote:

> Yes Bill that is very helpful.
>
> It is exactly as you say when I use bconsole restore. That works. I must
> have made a mistake when I tried with bconsole previously.
>
> I'm not able to reproduce that behaviour using Baculum, it always restores
> from a full irrespective of the level of the job being restored. There
> doesn't seem to be an equivalent of selecting a specific job ID.
>
> I take your point about schedule being unwanted but it shouldn't do any
> harm. I'll take it out for tidiness :).
>
> -Chris-
>
> On Fri, 27 Oct 2023, 22:42 Bill Arlofski via Bacula-users, <
> bacula-users@lists.sourceforge.net> wrote:
>
>> Resending to list. Accidentally directly replied to Chris...
>>
>>
>>
>> On 10/27/23 14:46, Chris Wilkinson wrote:
>> > Till now I have only ever done restores of full backups using the
>> restore wizard of Baculum. When I did a restore of an
>> > Incremental backup, I found that it reverted to restoring the last full
>> backup. I get exactly the same behaviour using  bconsole restore.
>>
>> When you do a restore in bconsole, by simply typing `restore`, you are
>> presented with a menu of options.
>>
>> Most people will want option 5 or 6, sometimes 12.
>>
>> When you choose 5 or 6, Bacula will build the virtual restore directory
>> tree from the last Full + all Incs up to the latest
>> Inc (or from the last Full and the last Diff and then any Incs that
>> followed)
>>
>> Bacula will even tell you what jobids, their levels, and the volumes it
>> has selected to build the restore tree from:
>> 8<
>> * restore
>>
>> ...choose option 5
>> ...select Client
>> ...select Fileset
>>
>> ++---+---+-+-+--+
>> | jobid  | level | jobfiles  | jobbytes| starttime   |
>> volumename   |
>>
>> ++---+---+-+-+--+
>> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
>> c0_0008_0035 |
>> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
>> c0_0008_0040 |
>> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
>> c0_0008_0060 |
>> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
>> c0_0008_0056 |
>> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
>> c0_0008_0068 |
>> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
>> c0_0008_0064 |
>> [...snip ...]
>> | 57,336 | I | 2,408 |   6,799,759,717 | 2023-10-01 23:00:01 |
>> c0_0008_0042 |
>> | 57,360 | I | 4,419 |  12,524,588,799 | 2023-10-02 23:00:00 |
>> c0_0008_0062 |
>> | 57,360 | I | 4,419 |  12,524,588,799 | 2023-10-02 23:00:00 |
>> c0_0008_0042 |
>> | 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 |
>> c0_0008_0049 |
>> | 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 |
>> c0_0008_0012 |
>> | 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 |
>> c0_0008_0037 |
>> | 57,416 | I | 7,835 |  11,500,849,933 | 2023-10-04 23:00:01 |
>> c0_0005_0035 |
>> | 57,416 | I | 7,835 |  11,500,849,933 | 2023-10-04 23:00:01 |
>> c0_0005_0031 |
>> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
>> c0_0005_0061 |
>> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
>> c0_0005_0035 |
>> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
>> c0_0005_0039 |
>> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
>> c0_0005_0069 |
>> | 57,446 | I | 5,753 |  11,490,954,183 | 2023-10-24 23:00:00 |
>> c0_0005_0023 |
>> | 57,446 | I | 5,753 |  11,490,954,183 | 2023-10-24 23:00:00 |
>> c0_0005_0024 |
>> | 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 |
>> c0_0005_0051 |
>> | 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 |
>> c0_0005_0015 |
>> | 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 |
>> c0_0005_0033 |
>>
>> ++---+---+-+-+--+
>> You have selected the following JobIds:
>> 57311,57336,57360,57389,57416,57440,57446,57477
>>
>> Building directory tree for JobId(s)
>> 57311,57336,57360,57389,57416,57440,57446,57477 ..
>> 8<
>>
>> IF, on the other hand, you just want to restore some files that were
>> backed up in a specific inc or Diff, simply specify the
>> jobid on the restore command line:
>> 8<
>> * restore jobid=57477
>> You have selected the following JobId: 57477
>>
>> Building directory tree for JobId(s) 57477 ...
>> +++
>> 

Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Chris Wilkinson
Yes Bill that is very helpful.

It is exactly as you say when I use bconsole restore. That works. I must
have made a mistake when I tried with bconsole previously.

I'm not able to reproduce that behaviour using Baculum, it always restores
from a full irrespective of the level of the job being restored. There
doesn't seem to be an equivalent of selecting a specific job ID.

I take your point about schedule being unwanted but it shouldn't do any
harm. I'll take it out for tidiness :).

-Chris-

On Fri, 27 Oct 2023, 22:42 Bill Arlofski via Bacula-users, <
bacula-users@lists.sourceforge.net> wrote:

> Resending to list. Accidentally directly replied to Chris...
>
>
>
> On 10/27/23 14:46, Chris Wilkinson wrote:
> > Till now I have only ever done restores of full backups using the
> restore wizard of Baculum. When I did a restore of an
> > Incremental backup, I found that it reverted to restoring the last full
> backup. I get exactly the same behaviour using  bconsole restore.
>
> When you do a restore in bconsole, by simply typing `restore`, you are
> presented with a menu of options.
>
> Most people will want option 5 or 6, sometimes 12.
>
> When you choose 5 or 6, Bacula will build the virtual restore directory
> tree from the last Full + all Incs up to the latest
> Inc (or from the last Full and the last Diff and then any Incs that
> followed)
>
> Bacula will even tell you what jobids, their levels, and the volumes it
> has selected to build the restore tree from:
> 8<
> * restore
>
> ...choose option 5
> ...select Client
> ...select Fileset
>
> ++---+---+-+-+--+
> | jobid  | level | jobfiles  | jobbytes| starttime   |
> volumename   |
>
> ++---+---+-+-+--+
> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
> c0_0008_0035 |
> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
> c0_0008_0040 |
> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
> c0_0008_0060 |
> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
> c0_0008_0056 |
> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
> c0_0008_0068 |
> | 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 |
> c0_0008_0064 |
> [...snip ...]
> | 57,336 | I | 2,408 |   6,799,759,717 | 2023-10-01 23:00:01 |
> c0_0008_0042 |
> | 57,360 | I | 4,419 |  12,524,588,799 | 2023-10-02 23:00:00 |
> c0_0008_0062 |
> | 57,360 | I | 4,419 |  12,524,588,799 | 2023-10-02 23:00:00 |
> c0_0008_0042 |
> | 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 |
> c0_0008_0049 |
> | 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 |
> c0_0008_0012 |
> | 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 |
> c0_0008_0037 |
> | 57,416 | I | 7,835 |  11,500,849,933 | 2023-10-04 23:00:01 |
> c0_0005_0035 |
> | 57,416 | I | 7,835 |  11,500,849,933 | 2023-10-04 23:00:01 |
> c0_0005_0031 |
> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
> c0_0005_0061 |
> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
> c0_0005_0035 |
> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
> c0_0005_0039 |
> | 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 |
> c0_0005_0069 |
> | 57,446 | I | 5,753 |  11,490,954,183 | 2023-10-24 23:00:00 |
> c0_0005_0023 |
> | 57,446 | I | 5,753 |  11,490,954,183 | 2023-10-24 23:00:00 |
> c0_0005_0024 |
> | 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 |
> c0_0005_0051 |
> | 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 |
> c0_0005_0015 |
> | 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 |
> c0_0005_0033 |
>
> ++---+---+-+-+--+
> You have selected the following JobIds:
> 57311,57336,57360,57389,57416,57440,57446,57477
>
> Building directory tree for JobId(s)
> 57311,57336,57360,57389,57416,57440,57446,57477 ..
> 8<
>
> IF, on the other hand, you just want to restore some files that were
> backed up in a specific inc or Diff, simply specify the
> jobid on the restore command line:
> 8<
> * restore jobid=57477
> You have selected the following JobId: 57477
>
> Building directory tree for JobId(s) 57477 ...
> +++
> 4,452 files inserted into the tree.
> 8<
>
>
> > This is the restore job resource.
> >
> > Job {
> >Name = "Restore"
> >Description = "Restore template"
> >Type = "Restore"
> >Level = "Full"
> >Messages = "Standard"
> >Storage = "dns-325-sd"
> >Pool = "usb16tb-full"
> >Client = "usb16tb-fd"
> >Fileset = "usb16tb"
> >Schedule = "sched_none"
> > }
> >
> > I had thought that most of 

Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Bill Arlofski via Bacula-users

Resending to list. Accidentally directly replied to Chris...



On 10/27/23 14:46, Chris Wilkinson wrote:
Till now I have only ever done restores of full backups using the restore wizard of Baculum. When I did a restore of an 
Incremental backup, I found that it reverted to restoring the last full backup. I get exactly the same behaviour using  bconsole restore.


When you do a restore in bconsole, by simply typing `restore`, you are 
presented with a menu of options.

Most people will want option 5 or 6, sometimes 12.

When you choose 5 or 6, Bacula will build the virtual restore directory tree from the last Full + all Incs up to the latest 
Inc (or from the last Full and the last Diff and then any Incs that followed)


Bacula will even tell you what jobids, their levels, and the volumes it has 
selected to build the restore tree from:
8<
* restore

...choose option 5
...select Client
...select Fileset
++---+---+-+-+--+
| jobid  | level | jobfiles  | jobbytes| starttime   | 
volumename   |
++---+---+-+-+--+
| 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 | 
c0_0008_0035 |
| 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 | 
c0_0008_0040 |
| 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 | 
c0_0008_0060 |
| 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 | 
c0_0008_0056 |
| 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 | 
c0_0008_0068 |
| 57,311 | F | 1,126,917 | 246,459,324,137 | 2023-09-30 23:00:00 | 
c0_0008_0064 |
[...snip ...]
| 57,336 | I | 2,408 |   6,799,759,717 | 2023-10-01 23:00:01 | 
c0_0008_0042 |
| 57,360 | I | 4,419 |  12,524,588,799 | 2023-10-02 23:00:00 | 
c0_0008_0062 |
| 57,360 | I | 4,419 |  12,524,588,799 | 2023-10-02 23:00:00 | 
c0_0008_0042 |
| 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 | 
c0_0008_0049 |
| 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 | 
c0_0008_0012 |
| 57,389 | I | 5,654 |  22,617,335,979 | 2023-10-03 23:00:00 | 
c0_0008_0037 |
| 57,416 | I | 7,835 |  11,500,849,933 | 2023-10-04 23:00:01 | 
c0_0005_0035 |
| 57,416 | I | 7,835 |  11,500,849,933 | 2023-10-04 23:00:01 | 
c0_0005_0031 |
| 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 | 
c0_0005_0061 |
| 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 | 
c0_0005_0035 |
| 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 | 
c0_0005_0039 |
| 57,440 | I |   343,892 |  29,334,262,930 | 2023-10-24 10:16:33 | 
c0_0005_0069 |
| 57,446 | I | 5,753 |  11,490,954,183 | 2023-10-24 23:00:00 | 
c0_0005_0023 |
| 57,446 | I | 5,753 |  11,490,954,183 | 2023-10-24 23:00:00 | 
c0_0005_0024 |
| 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 | 
c0_0005_0051 |
| 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 | 
c0_0005_0015 |
| 57,477 | I | 6,270 |  22,715,024,368 | 2023-10-25 23:00:01 | 
c0_0005_0033 |
++---+---+-+-+--+
You have selected the following JobIds: 
57311,57336,57360,57389,57416,57440,57446,57477

Building directory tree for JobId(s) 
57311,57336,57360,57389,57416,57440,57446,57477 ..
8<

IF, on the other hand, you just want to restore some files that were backed up in a specific inc or Diff, simply specify the 
jobid on the restore command line:

8<
* restore jobid=57477
You have selected the following JobId: 57477

Building directory tree for JobId(s) 57477 ...  
+++
4,452 files inserted into the tree.
8<



This is the restore job resource.

Job {
   Name = "Restore"
   Description = "Restore template"
   Type = "Restore"
   Level = "Full"
   Messages = "Standard"
   Storage = "dns-325-sd"
   Pool = "usb16tb-full"
   Client = "usb16tb-fd"
   Fileset = "usb16tb"
   Schedule = "sched_none"
}

I had thought that most of these directives are not actually used as is but would be overridden by the wizard, i.e. the 
values here are required but unimportant.


I have no idea what Baculum does, Marcin can answer you definitively, but I bet there is a way to "restore files only from 
selected jobid" or similar option.



I also thought that only one 'dummy' restore job is needed that would be populated by the appropriate level, pool etc. from 
the job/level being restored but that isn't what actually happens. It looks like the restore is taking its' level from the 
restore job above.


There is no such thing as a 'level' when doing a restore. The Bacula config parser requires certain things to be in each Job 
resource, and a `Type = Restore` Job resource is a Job just like any other.


The pool, client, fileset, and storage are ignore as 

Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Chris Wilkinson
I don't see any options to specify level either in Baculum or bconsole
restore? Level has no meaning in a restore context since we restore jobs
that have a defined level.

-Chris-

On Fri, 27 Oct 2023, 22:08 Rob Gerber,  wrote:

> As far as I know you should only need one restore job.
>
> Have you tried specifying which level to actually use when you did the
> restore? Like in bconsole I think you'd add "level=incremental" to the end
> of the restore command. In baculum/bacularis you would click the drop-down
> box where it said "full" and change it to incremental.
>
> Robert Gerber
> 402-237-8692
> r...@craeon.net
>
> On Fri, Oct 27, 2023, 3:47 PM Chris Wilkinson 
> wrote:
>
>> Till now I have only ever done restores of full backups using the restore
>> wizard of Baculum. When I did a restore of an Incremental backup, I found
>> that it reverted to restoring the last full backup. I get exactly the same
>> behaviour using bconsole restore.
>>
>> This is the restore job resource.
>>
>> Job {
>>   Name = "Restore"
>>   Description = "Restore template"
>>   Type = "Restore"
>>   Level = "Full"
>>   Messages = "Standard"
>>   Storage = "dns-325-sd"
>>   Pool = "usb16tb-full"
>>   Client = "usb16tb-fd"
>>   Fileset = "usb16tb"
>>   Schedule = "sched_none"
>> }
>>
>> I had thought that most of these directives are not actually used as is
>> but would be overridden by the wizard, i.e. the values here are required
>> but unimportant.
>>
>> I also thought that only one 'dummy' restore job is needed that would be
>> populated by the appropriate level, pool etc. from the job/level being
>> restored but that isn't what actually happens. It looks like the restore is
>> taking its' level from the restore job above.
>>
>> I have separate pools for each job and level.
>>
>> Do I need to define individual restore jobs for every job/level?
>>
>> Best
>> Chris Wilkinson
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Rob Gerber
As far as I know you should only need one restore job.

Have you tried specifying which level to actually use when you did the
restore? Like in bconsole I think you'd add "level=incremental" to the end
of the restore command. In baculum/bacularis you would click the drop-down
box where it said "full" and change it to incremental.

Robert Gerber
402-237-8692
r...@craeon.net

On Fri, Oct 27, 2023, 3:47 PM Chris Wilkinson 
wrote:

> Till now I have only ever done restores of full backups using the restore
> wizard of Baculum. When I did a restore of an Incremental backup, I found
> that it reverted to restoring the last full backup. I get exactly the same
> behaviour using bconsole restore.
>
> This is the restore job resource.
>
> Job {
>   Name = "Restore"
>   Description = "Restore template"
>   Type = "Restore"
>   Level = "Full"
>   Messages = "Standard"
>   Storage = "dns-325-sd"
>   Pool = "usb16tb-full"
>   Client = "usb16tb-fd"
>   Fileset = "usb16tb"
>   Schedule = "sched_none"
> }
>
> I had thought that most of these directives are not actually used as is
> but would be overridden by the wizard, i.e. the values here are required
> but unimportant.
>
> I also thought that only one 'dummy' restore job is needed that would be
> populated by the appropriate level, pool etc. from the job/level being
> restored but that isn't what actually happens. It looks like the restore is
> taking its' level from the restore job above.
>
> I have separate pools for each job and level.
>
> Do I need to define individual restore jobs for every job/level?
>
> Best
> Chris Wilkinson
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restoring Incremental Promotes to Full

2023-10-27 Thread Chris Wilkinson
Till now I have only ever done restores of full backups using the restore
wizard of Baculum. When I did a restore of an Incremental backup, I found
that it reverted to restoring the last full backup. I get exactly the same
behaviour using bconsole restore.

This is the restore job resource.

Job {
  Name = "Restore"
  Description = "Restore template"
  Type = "Restore"
  Level = "Full"
  Messages = "Standard"
  Storage = "dns-325-sd"
  Pool = "usb16tb-full"
  Client = "usb16tb-fd"
  Fileset = "usb16tb"
  Schedule = "sched_none"
}

I had thought that most of these directives are not actually used as is but
would be overridden by the wizard, i.e. the values here are required but
unimportant.

I also thought that only one 'dummy' restore job is needed that would be
populated by the appropriate level, pool etc. from the job/level being
restored but that isn't what actually happens. It looks like the restore is
taking its' level from the restore job above.

I have separate pools for each job and level.

Do I need to define individual restore jobs for every job/level?

Best
Chris Wilkinson
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows filesets setup...

2023-10-27 Thread Marco Gaiarin
Mandi! Lionel PLASSE
  In chel di` si favelave...

> Will wildir c:/* on exclude  options remove all files from backup, won't it?
> I think you have to look on the include/exlude wildcards   use wild files nor 
> wild dir ?

And

> I meant : You don't need exclude block  just include c:/program files* like 
> D:/ do


OK, but mine seems like the last examples in 'FileSet Examples':

https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00218

So 'Include' define the root of the dir to backup, and 'Options {}' stanzas
define what to include and what to exclude.


What i'm missing?! You have some (counter) examples? Thanks.

-- 
  Software patents are like smoke: «it started with an experiment to improve
  health. It tasted quite good and it soon became a fashion statement. But
  today smoking kills not only those who smoke but also those who breathe
  nearby.»  (Marten Mickos)




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows filesets setup...

2023-10-27 Thread Martin Simmons
The problem is that your second options clauses matches the directory
"C:/Program Files" so that is excluded and the first options clause is never
used.

Have a look at the example about "My Pictures" in
https://www.bacula.org/13.0.x-manuals/en/main/Configuring_Director.html#SECTION0022110
to see how to set it up.

__Martin


> On Thu, 26 Oct 2023 13:28:39 +0200, Marco Gaiarin said:
> 
> Still there's some things in Bacula that i really dont't understand,
> evidently. ;-)
> 
> 
> I need to backup a windows box; i need to backup entirely the D: drive and
> partially the C: drive. Following documentation and examples, i've wrote:
> 
>  FileSet {
>Name = ArmeoStd
>Description = "Backup dati Hocoma/Armeo"
>Enable VSS = yes
>  
>Include {
>  File = "C:/"
>  
>  Options {
>Signature = MD5
>Ignore Case = yes
>  
>WildDir = "C:/Program Files*/Hocoma"
>  }
>  
>  Options {
>Exclude = yes
>  
>WildDir = "C:/*"
>  }
>}
>  
>Include {
>  File = "D:/"
>  
>  Options {
>Signature = MD5
>Ignore Case = yes
>  }
>}
>  }
> 
> 
> Backup on D: works as expected, on C: i got:
> 
>  cwd is: /
>  $ dir
>  drwxrwx--T   1 root root   12288  2023-10-23 08:45:20  C:/
>  drwxrwx--T   1 root root4096  2023-10-23 08:45:17  D:/
>  cd C:/
>  cwd is: C:/
>  dir:/
>  -rwxrwxrwx   1 root root1024  2023-10-18 13:09:20  C:/.rnd
>  -rwxrwx--T   1 root root  3126231040  2023-10-26 11:41:44  
> C:/hiberfil.sys
>  -rwxrwx--T   1 root root  4168310784  2023-10-26 11:41:44  
> C:/pagefile.sys
> 
> What i'm doing wrong?!
> 
> 
> Thanks...
> 
> -- 
>   Sai come fanno i Serbi ad abbattere i caccia americani?
>   Disegnando una funivia sul terreno...
> 
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows filesets setup...

2023-10-27 Thread Lionel PLASSE
I meant : You don't need exclude block  just include c:/program files* like D:/ 
do

-Message d'origine-
De : Marco Gaiarin 
Envoyé : jeudi 26 octobre 2023 13:29
À : bacula-users@lists.sourceforge.net
Objet : [Bacula-users] Windows filesets setup...


Still there's some things in Bacula that i really dont't understand, evidently. 
;-)


I need to backup a windows box; i need to backup entirely the D: drive and 
partially the C: drive. Following documentation and examples, i've wrote:

 FileSet {
   Name = ArmeoStd
   Description = "Backup dati Hocoma/Armeo"
   Enable VSS = yes

   Include {
 File = "C:/"

 Options {
   Signature = MD5
   Ignore Case = yes

   WildDir = "C:/Program Files*/Hocoma"
 }

 Options {
   Exclude = yes

   WildDir = "C:/*"
 }
   }

   Include {
 File = "D:/"

 Options {
   Signature = MD5
   Ignore Case = yes
 }
   }
 }


Backup on D: works as expected, on C: i got:

 cwd is: /
 $ dir
 drwxrwx--T   1 root root   12288  2023-10-23 08:45:20  C:/
 drwxrwx--T   1 root root4096  2023-10-23 08:45:17  D:/
 cd C:/
 cwd is: C:/
 dir:/
 -rwxrwxrwx   1 root root1024  2023-10-18 13:09:20  C:/.rnd
 -rwxrwx--T   1 root root  3126231040  2023-10-26 11:41:44  
C:/hiberfil.sys
 -rwxrwx--T   1 root root  4168310784  2023-10-26 11:41:44  
C:/pagefile.sys

What i'm doing wrong?!


Thanks...

--
  Sai come fanno i Serbi ad abbattere i caccia americani?
  Disegnando una funivia sul terreno...




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows filesets setup...

2023-10-27 Thread Lionel PLASSE
Will wildir c:/* on exclude  options remove all files from backup, won't it?
I think you have to look on the include/exlude wildcards   use wild files nor 
wild dir ?

-Message d'origine-
De : Marco Gaiarin  
Envoyé : jeudi 26 octobre 2023 13:29
À : bacula-users@lists.sourceforge.net
Objet : [Bacula-users] Windows filesets setup...


Still there's some things in Bacula that i really dont't understand, evidently. 
;-)


I need to backup a windows box; i need to backup entirely the D: drive and 
partially the C: drive. Following documentation and examples, i've wrote:

 FileSet {
   Name = ArmeoStd
   Description = "Backup dati Hocoma/Armeo"
   Enable VSS = yes
 
   Include {
 File = "C:/"
 
 Options {
   Signature = MD5
   Ignore Case = yes
 
   WildDir = "C:/Program Files*/Hocoma"
 }
 
 Options {
   Exclude = yes
 
   WildDir = "C:/*"
 }
   }
 
   Include {
 File = "D:/"
 
 Options {
   Signature = MD5
   Ignore Case = yes
 }
   }
 }


Backup on D: works as expected, on C: i got:

 cwd is: /
 $ dir
 drwxrwx--T   1 root root   12288  2023-10-23 08:45:20  C:/
 drwxrwx--T   1 root root4096  2023-10-23 08:45:17  D:/
 cd C:/
 cwd is: C:/
 dir:/
 -rwxrwxrwx   1 root root1024  2023-10-18 13:09:20  C:/.rnd
 -rwxrwx--T   1 root root  3126231040  2023-10-26 11:41:44  
C:/hiberfil.sys
 -rwxrwx--T   1 root root  4168310784  2023-10-26 11:41:44  
C:/pagefile.sys

What i'm doing wrong?!


Thanks...

--
  Sai come fanno i Serbi ad abbattere i caccia americani?
  Disegnando una funivia sul terreno...




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users