-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/05/2005 01:42 PM, Christoph Haas wrote:
> On Monday 05 December 2005 13:28, MaxxAtWork wrote:
>>My wish is that after Bacula terminates a full backup, the volume
>>currently mounted would be marked as used, so that next weekly full
>>would start from a different tape.
> 
> Unfortunately such a feature does not exist. I also requested that some 
> time ago. The workaround I currently use it to set
> 
>  Maximum Volume Jobs = 1
> 
> in the pool. So after a job is done the current volume is not used any 
> more. 
> 
> Since you probably still want multiple incremental backups to go onto the 
> same volume you could consider using a pool for full backups with 
> MaximumVolumeJobs=1 and another pool for incremental backups without this 
> restriction.

And as I like to do the next differential job that follows a full backup
also on a fresh tape, I am running the following SQL after completion of
a full backup:

mark_used() {
  jobname="$1"

  $SQLITE 2>&1 <<EOF
UPDATE media
  SET volstatus = 'Used'
  WHERE mediaid IN (
    SELECT distinct media.mediaid
      FROM media, job, jobmedia
      WHERE job.name = '$jobname'
        AND media.volstatus = 'Append'
        AND job.jobid = jobmedia.jobid
        AND jobmedia.mediaid = media.mediaid
  );
EOF
}

Hth,
- --leo
- --
- -----------------------------------------------------------------------
[EMAIL PROTECTED]                Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDlD0RsYaksEkoAQMRAlpEAJ0U/AFYtB09vrGh/v664k60jy7/FgCgmJ0M
ESTJs/BAUpt7upfXgmP/rqU=
=js/V
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to