Hi folx,

I am new to bacula and my setup is working (mostly).
I am using bacula 2.2.0 with a HP Storage Works 1/8 G2 Tape Autoloader.

The goal ist to use 6 tapes (1 for each day) and have one slot with "take
away" tapes (weekly/monthly backups).

Schedule {
  Name = "WeeklyCycle"
  Run = Level=Incremental Pool=Monday Monday at 23:05
  Run = Level=Incremental Pool=Tuesday Tuesday at 23:05
  Run = Level=Incremental Pool=Wednesday Wednesday at 23:05
  Run = Level=Incremental Pool=Thursday Thursday at 23:05
  Run = Level=Incremental Pool=Friday Friday at 23:05
  Run = Level=Incremental Pool=Saturday Saturday at 23:05 
  Run = Level=Full Pool=Monthly 1st Sunday at 23:05
  Run = Level=Full Pool=Weekly 2nd-5th Sunday at 23:05
}

and the pool defnitions for the various weeksdays are like:

Pool {
  Name = Monday
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 5d
  Maximum Volumes = 1
}

and for the weekly/monthly:

# 6 tapes for weeks
Pool {
  Name = Weekly
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 40d
  Maximum Volumes = 6
}

# 13 tapes for months
Pool {
  Name = Monthly
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 360d
  Maximum Volumes = 13
}

However I do not want bacula to *append* to each tape every e.g. Monday,
but I want it to rewrite the tape, but this doesn't work. Do I also
have to specify
   Use Volume Once = yes
I don't want to use
   Maximum Volume Jobs = nnn
as there is a (growing) number of jobs and I don't want to have to
modify all the pools each time a new job is added.
Do I have to specify a
   Recycle Pool = Monday
or will this work automatically? 

Currently e.g. the tape "Tuesday" is in status "Full" and I cannot get
the config to work, so that it gets overridden next Tuesday.

The tapes in the Changer, names and assignment to the pools are IMHO
correct.

# mtx status
  Storage Changer /dev/changer:1 Drives, 8 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = VHX537L2
      Storage Element 1:Full :VolumeTag=VHX536L2
      Storage Element 2:Empty
      Storage Element 3:Full :VolumeTag=VHX538L2
      Storage Element 4:Full :VolumeTag=VHX539L2
      Storage Element 5:Full :VolumeTag=VHX540L2
      Storage Element 6:Full :VolumeTag=VHX541L2
      Storage Element 7:Full :VolumeTag=VHX542L2
      Storage Element 8 IMPORT/EXPORT:Empty

mysql> select VolumeName,PoolId,Slot from Media order by VolumeName;
+------------+--------+------+
| VolumeName | PoolId | Slot |
+------------+--------+------+
| VHX536L2   |      2 |    1 | 
| VHX537L2   |      3 |    2 | 
| VHX538L2   |      4 |    3 | 
| VHX539L2   |      5 |    4 | 
| VHX540L2   |      6 |    5 | 
| VHX541L2   |      7 |    6 | 
| VHX542L2   |      8 |    7 | 
...

mysql> select PoolId,Name,NumVols from Pool;
+--------+-----------+---------+
| PoolId | Name      | NumVols |
+--------+-----------+---------+
|      1 | Default   |       0 | 
|      2 | Monday    |       1 | 
|      3 | Tuesday   |       1 | 
|      4 | Wednesday |       1 | 
|      5 | Thursday  |       1 | 
|      6 | Friday    |       1 | 
|      7 | Saturday  |       1 | 
|      8 | Weekly    |       6 | 
|      9 | Monthly   |      13 | 
+--------+-----------+---------+

Also, is there a way to have bacula skip jobs after some time?
The job on Tuesday didn't work out as the tape was marked full.
The 'list jobs' command now says that the job is still running but I
cannot cancel it (no such job).

+-------+--------------------+---------------------+------+-------+----------+-----------------+-----------+
| JobId | Name               | StartTime           | Type | Level |
JobFiles | JobBytes        | JobStatus |
+-------+--------------------+---------------------+------+-------+----------+-----------------+-----------+
|   234 | EFN-SRV01.INTRANET | 2007-10-02 23:05:02 | B    | I     |
 0 |               0 | R         |
+-------+--------------------+---------------------+------+-------+----------+-----------------+-----------+

Also the Wednesday job did not run (probably because the Tueday job is
still in queue).
How do I cancel this job (besides stopping bacula and modifying the
MySQL database and marking the job as cancelled).

Thanks!

        \Maex


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to