[Bacula-users] SOLVED: Autochanger does not create volumes (on mounted external USB drive)

2022-05-24 Thread Justin Case

> On 24. May 2022, at 16:40, Justin Case  wrote:
> 
> Hi there,
> 
> in my setup I call internal drives connected by SATA “Tier 1”, and external 
> drives connected by USB “Tier 2”.
> I have separate pools for jobs that write to tier 1 and for jobs that write 
> to tier 2.
> Each given pool contains only volumes stored on 1 tier, so each pool is 
> either a tier pool or a tier 2 pool, but never both.
> 
> For Tier 1 I have a working autochanger that created volumes in the pools 
> that I use for tier 1 (only).
> 
> For Tier 2 I have another autochanger that is supposed to create volumes in 
> the pooks that i use for tier 2 (only), but it doesn’t do that. It gives me:
> The job needs media. Please mount volume unraid-libvirt-full-tier2-vol-0543 
> or label a new one for storage: "Tier2-FileChgr1-Dev1" (/mnt/tier2-01), pool: 
> unraid-libvirt-full-tier2, media type: tier2-ext-usb1-folder1-file.
> 
> Any chance to get this to work?

Actually the definitions and setup in Bacula works fine. 

The problem was that the external USB drives were not writeable due to unknown 
reasons. After reformatting and setting up the folder structure all worked fine.

I am sorry if someone spent a lot of time reading my setup and scratched their 
heads where the problem may be.

All the best
 J/C



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


Re: [Bacula-users] Question about differential backup

2022-05-24 Thread Bill Arlofski via Bacula-users

On 5/24/22 12:17, egoitz--- via Bacula-users wrote:


If I want to restore my machine to Diferential 003 situation... do I need the 
Full job (obviously) + Differential 001 +
Differential 002 + Differential 003 or it's OK if I use Full job (obviously) + 
Differential 003 ?.



You would type 'restore' and choose option 5. Bacula will build the restore 
from the Full jobid, and the latest Differential
jobid, and any Incremental jobids that ran after the last Differential.


Hope this helps!
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] Question about schedule

2022-05-24 Thread Phil Stracchino

On 5/24/22 14:12, egoitz--- via Bacula-users wrote:

Good morning,


One little question about Schedules. Imagine I have this schedule :


Schedule{
Name = "WeeklyCycle"
Run = Full 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}

Imagine I set up a new backup... and I set up in the third week of the 
month. Imagine I start on a Tuesday. For my experience, I assume that 
Bacula would do :


- As no backups have been done previosly, first of all at the first time 
it runs at 23:05, perform a full backup.


- The next day it runs, even there is not a differential backup, as 
supposedly the second time the job runs is Wednesday it will do an 
incremental backup.


- When Sunday arrives, it would do the first differential. At this 
moment we will have a Full backup, plus N incrementals. Today we to a 
differential and will have a differential too.


- The following times it launches incrementals in the week and on Sunday 
new differential, until the first Sunday of month in which a new full 
will be created.



Am I wrong?. I think not...



That all looks correct, yes.



--
  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


Re: [Bacula-users] Question about differential backup

2022-05-24 Thread Josip Deanovic

On 2022-05-24 20:17, egoitz--- via Bacula-users wrote:

Good afternoon,

One more question, that I have seen it difficult to be absolutely sure
just with the documentation available on the net and my Bacula books
bought.

If I have :

Full

Differential 001

Differential 002

Differential 003

If I want to restore my machine to Diferential 003 situation... do I
need the Full job (obviously) + Differential 001 + Differential 002 +
Differential 003 or it's OK if I use Full job (obviously) + 
Differential

003 ?.

Thanks a lot mates!



Hi

Differential backup covers differences since the latest full job.
So, in your example you would need the appropriate Full job and the
"Differential 003" job.

The idea behind differential jobs is to speed up the restore by avoiding
the need of a number of incremental jobs which could reside on different
volumes.

If you are using only volumes of a file type (stored on a disk storage)
and your volumes are always available, then you probably wouldn't 
benefit

from differential backups as disk storage is quite fast and Bacula can
open volumes as needed.


Regards!

--
Josip Deanovic


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


[Bacula-users] Question about differential backup

2022-05-24 Thread egoitz--- via Bacula-users
Good afternoon, 

One more question, that I have seen it difficult to be absolutely sure
just with the documentation available on the net and my Bacula books
bought. 

If I have : 

Full 

Differential 001 

Differential 002 

Differential 003 

If I want to restore my machine to Diferential 003 situation... do I
need the Full job (obviously) + Differential 001 + Differential 002 +
Differential 003 or it's OK if I use Full job (obviously) + Differential
003 ?. 

Thanks a lot mates! 

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


[Bacula-users] Question about schedule

2022-05-24 Thread egoitz--- via Bacula-users
Good morning, 

One little question about Schedules. Imagine I have this schedule : 

Schedule{ 

Name = "WeeklyCycle" 

Run = Full 1st sun at 23: 05 

Run = Differential 2nd-5th sun at 23: 05 

Run = Incremental mon-sat at 23: 05 

}

Imagine I set up a new backup... and I set up in the third week of the
month. Imagine I start on a Tuesday. For my experience, I assume that
Bacula would do : 

- As no backups have been done previosly, first of all at the first time
it runs at 23:05, perform a full backup. 

- The next day it runs, even there is not a differential backup, as
supposedly the second time the job runs is Wednesday it will do an
incremental backup. 

- When Sunday arrives, it would do the first differential. At this
moment we will have a Full backup, plus N incrementals. Today we to a
differential and will have a differential too. 

- The following times it launches incrementals in the week and on Sunday
new differential, until the first Sunday of month in which a new full
will be created. 

Am I wrong?. I think not... 

Thanks a lot mates, 

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


Re: [Bacula-users] Question about scratch pool

2022-05-24 Thread egoitz--- via Bacula-users
Hi all mates, 

Thank you so much for your answer. I see. I got it. 

Thanks you so much really for all your help, 

Cheers!

El 2022-05-24 13:16, Josh Fisher escribió:

> ATENCION
> ATENCION
> ATENCION!!! Este correo se ha enviado desde fuera de la organizacion. No 
> pinche en los enlaces ni abra los adjuntos a no ser que reconozca el 
> remitente y sepa que el contenido es seguro.
> 
> On 5/24/22 06:51, Heitor Faria wrote: Still unsupported... Sorry. You are 
> right.
> It is not needed for scalability purposes, but one Director can have many 
> different Catalogs as desired.

And each catalog will have its own unique Scratch pool. In fact, all of
the pools (and all other resources) defined in a particular catalog are
unique. Each customer could use the same pool names, because they are
using different catalogs. There is no overlap of pools, or of the
volumes contained in those pools.

What is impossible is a single, shared Scratch pool for all customers.
The Director can use more than one catalog, but a particular resource,
(Pool, Volume, Client, Job, etc.) can belong to only one catalog.

___
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] Autochanger does not create volumes (on mounted external USB drive)

2022-05-24 Thread Justin Case
Hi there,

in my setup I call internal drives connected by SATA “Tier 1”, and external 
drives connected by USB “Tier 2”.
I have separate pools for jobs that write to tier 1 and for jobs that write to 
tier 2.
Each given pool contains only volumes stored on 1 tier, so each pool is either 
a tier pool or a tier 2 pool, but never both.

For Tier 1 I have a working autochanger that created volumes in the pools that 
I use for tier 1 (only).

For Tier 2 I have another autochanger that is supposed to create volumes in the 
pooks that i use for tier 2 (only), but it doesn’t do that. It gives me:
The job needs media. Please mount volume unraid-libvirt-full-tier2-vol-0543 or 
label a new one for storage: "Tier2-FileChgr1-Dev1" (/mnt/tier2-01), pool: 
unraid-libvirt-full-tier2, media type: tier2-ext-usb1-folder1-file.

Any chance to get this to work?

Here are the definitions from the bacula-sd.config:

Storage {
  Name = "bacula-sd"
  WorkingDirectory = "/opt/bacula/working"
  PidDirectory = "/opt/bacula/working"
  PluginDirectory = "/opt/bacula/plugins"
  MaximumConcurrentJobs = 20
}
Device {
  Name = "Restore-FileChgr1-Dev99"
  Description = "Use this folder as default location for restore jobs"
  MediaType = "restore-int-user0-folder1"
  DeviceType = "File"
  ArchiveDevice = "/mnt/restore"
  RemovableMedia = no
  RandomAccess = yes
  AutomaticMount = yes
  LabelMedia = yes
  Autochanger = yes
  AutoSelect = no
  DriveIndex = 99
}
Device {
  Name = "Tier1-FileChgr1-Dev1"
  Description = "unRAID local file system folder 1"
  MediaType = "tier1-int-user0-folder1-file"
  DeviceType = "File"
  ArchiveDevice = "/mnt/tier1-01"
  RemovableMedia = no
  RandomAccess = yes
  AutomaticMount = yes
  LabelMedia = yes
  AlwaysOpen = no
  Autochanger = yes
  MaximumConcurrentJobs = 5
}
Device {
  Name = "Tier1-FileChgr1-Dev2"
  Description = "unRAID local file system folder 2"
  MediaType = "tier1-int-user0-folder2-file"
  DeviceType = "File"
  ArchiveDevice = "/mnt/tier1-02"
  RemovableMedia = no
  RandomAccess = yes
  AutomaticMount = yes
  LabelMedia = yes
  AlwaysOpen = no
  Autochanger = yes
  MaximumConcurrentJobs = 5
  DriveIndex = 1
}
Device {
  Name = "Tier2-FileChgr1-Dev1"
  Description = "unRAID external USB disk 1 folder 1"
  MediaType = "tier2-ext-usb1-folder1-file"
  DeviceType = "File"
  ArchiveDevice = "/mnt/tier2-01"
  RemovableMedia = yes
  RandomAccess = yes
  AutomaticMount = yes
  LabelMedia = yes
  AlwaysOpen = no
  Autochanger = yes
  MaximumConcurrentJobs = 5
}
Device {
  Name = "Tier2-FileChgr1-Dev2"
  Description = "unRAID external USB disk 2 folder 1"
  MediaType = "tier2-ext-usb2-folder1-file"
  DeviceType = "File"
  ArchiveDevice = "/mnt/tier2-02"
  RemovableMedia = yes
  RandomAccess = yes
  AutomaticMount = yes
  LabelMedia = yes
  AlwaysOpen = no
  Autochanger = yes
  MaximumConcurrentJobs = 5
}
Messages {
  Name = "Standard"
  Director = bacula-dir = All
}
Autochanger {
  Name = "tier1-int-user0-folder-changer"
  Description = "This changer makes all tier 1 folders on internal user0 file 
system accessible"
  Device = "Restore-FileChgr1-Dev99"
  Device = "Tier1-FileChgr1-Dev1"
  Device = "Tier1-FileChgr1-Dev2"
  ChangerDevice = "/dev/null"
  ChangerCommand = "/dev/null"
}
Autochanger {
  Name = "tier2-ext-usb-changer"
  Description = "This changer makes all tier 2 folders on external USB mass 
storage accessible"
  Device = "Tier2-FileChgr1-Dev1"
  Device = "Tier2-FileChgr1-Dev2"
  ChangerDevice = "/dev/null"
  ChangerCommand = "/dev/null"
}

Here are some definitions of storage, pools and jobs from bacula-dir.config:

Job {
  Name = "unraid-libvirt-tier1"
  Description = "Job to backup unRAID Libvirt to Tier 1"
  Type = "Backup"
  Level = "Full"
  Messages = "Standard"
  Storage = "unraid-tier1-storage"
  Pool = "unraid-libvirt-full-tier1"
  FullBackupPool = "unraid-libvirt-full-tier1"
  IncrementalBackupPool = "unraid-libvirt-incr-tier1"
  Client = "bacula-fd"
  Fileset = "unraid-libvirt"
  Schedule = "First-Mon-Full"
  JobDefs = "DefaultJob"
  Enabled = yes
  AllowIncompleteJobs = no
  AllowDuplicateJobs = no
}
Job {
  Name = "unraid-libvirt-tier2"
  Description = "Job to backup unRAID Libvirt to Tier 2"
  Type = "Backup"
  Level = "Full"
  Messages = "Standard"
  Storage = "unraid-tier2-storage"
  Pool = "unraid-libvirt-full-tier2"
  FullBackupPool = "unraid-libvirt-full-tier2"
  IncrementalBackupPool = "unraid-libvirt-incr-tier2"
  Client = "bacula-fd"
  Fileset = "unraid-libvirt"
  Schedule = "Third-Mon-Full"
  JobDefs = "DefaultJob"
  Enabled = yes
  AllowIncompleteJobs = no
  AllowDuplicateJobs = no
}

Storage {
  Name = "unraid-tier1-storage"
  Description = "Tier 1 storage on unraid"
  SdPort = 9103
 Address = “redacted"
 Password = “redacted"
  Device = "tier1-int-user0-folder-changer"
  MediaType = "tier1-int-user0-folder1-file"
  Autochanger = "unraid-tier1-storage"
  MaximumConcurrentJobs = 10
}
Storage {
  Name = "unraid-tier2-storage"
  Description = "Tier 2 storage on unraid"
 

Re: [Bacula-users] Question about scratch pool

2022-05-24 Thread Josh Fisher

On 5/24/22 06:51, Heitor Faria wrote:

Still unsupported...

Sorry. You are right.
It is not needed for scalability purposes, but one Director can have many 
different Catalogs as desired.



And each catalog will have its own unique Scratch pool. In fact, all of 
the pools (and all other resources) defined in a particular catalog are 
unique. Each customer could use the same pool names, because they are 
using different catalogs. There is no overlap of pools, or of the 
volumes contained in those pools.


What is impossible is a single, shared Scratch pool for all customers. 
The Director can use more than one catalog, but a particular resource, 
(Pool, Volume, Client, Job, etc.) can belong to only one catalog.





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


Re: [Bacula-users] Question about scratch pool

2022-05-24 Thread Heitor Faria
> Still unsupported...

Sorry. You are right. 
It is not needed for scalability purposes, but one Director can have many 
different Catalogs as desired.

> --
> MSc Heitor Faria (Miami/USA)
> CIO Bacula LatAm
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
> [ http://bacula.lat/]


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