OK. Tried to do it "my way". For example:

Schedule {
Name = "DailyCycle"
Run = Pool=Swapdisk3 Level=Full w01/w03 mon at 1:00 
Run = Pool=Swapdisk3 Level=Incremental w01/w03 tue-fri at 1:00 
Run = Pool=Swapdisk1 Level=Incremental w01/w03 sat-sun at 1:00
Run = Pool=Swapdisk1 Level=Full w02/w03 mon at 1:00 
Run = Pool=Swapdisk1 Level=Incremental w02/w03 tue-fri at 1:00 
Run = Pool=Swapdisk2 Level=Incremental w02/w03 sat-sun at 1:00
Run = Pool=Swapdisk2 Level=Full w03/w03 mon at 1:00 
Run = Pool=Swapdisk2 Level=Incremental w03/w03 tue-fri at 1:00 
Run = Pool=Swapdisk3 Level=Incremental w03/w03 sat-sun at 1:00
}

(It is a bit skewed since I want to do fulls on saturday and the week
obviously starts on monday)
But so far scheduled jobs show volume for job as "*unknown*" and there
is one more issue.
The jobs which are set to be run on connection from client (laptops) do
want the default pool for the job, they do not get schedule into
account.
Might indeed fidlde with the changer. (I do use vchanger anyway).


On Wed, 2025-03-12 at 14:50 +0100, Spadajspadaj wrote:
> But that would require me to remember to swap the disks and then
> bareos would only use the disks online, do I get it right?
> I hoped for the other way around - when I need to swap disks, I get a
> notification. I'm lazy and tend to forget such things 😉
> 
> MK
> 
> On Wed, 2025-03-12 at 11:06 +0100, Andreas Rogge wrote:
> > I have a bad and untested idea that you could try.
> > 
> > First of all you'll need a file autochanger for that (see PR
> > 2090[1]).
> > 
> > * pre-create volumes on your disks (probably already did that)
> > * create a script that mimics the mtx-changer list/listall output
> > format 
> > but lists the volume names from the drive that is currently plugged
> > in
> > * configure that script as a changer command in the file
> > autochanger
> > * set autochanger = yes in the director's configuration for your
> > storage
> > 
> > At this point you should be able to run "status slots" to view the
> > disk 
> > volumes that are currently available.
> > Also, "update slots" should now set the inchanger flag and update
> > the 
> > slot column in the volume record.
> > 
> > As you enabled the autochanger-flag on the Storage in the director 
> > configuration, the inchanger flag should now be honored.
> > As a result Bareos should automatically select a volume that is
> > "online".
> > 
> > Best Regards,
> > Andreas
> > 
> > 
> > [1] https://github.com/bareos/bareos/pull/2090
> > 
> > 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/bareos-users/e34f6fdcfae26fdd0e71e5ebbc36ac11f8ad6f4c.camel%40gmail.com.

Reply via email to