Re: [Bacula-users] Automatically marking a tape as full

2005-07-26 Thread nathan r. hruby

On Tue, 26 Jul 2005, Jesse Keating wrote:


After all the backups in a given week occur, I'd like to automatically
mark the last tape used as full, so that the next set of backups uses a
new clean tape.  Is there a way to do this?


Kick off a nice big render? ;-)

If you have an autoloader you can simply swap mags and have bacula rescan
the library, after that it should prefer those tapes instead of the ones
out of the changer.  I think that's what you're getting at... weekly
rotation of tape media through the changer to support the full retention
period?

As to specifically marking a tape (or set of tapes) as Full to force
the Director to pick a pre-defined tape I don't know.  You could probably
manipulate the MySQL database behind Bacula's back and then HUP it to pick
up changes... I might mention that just because you *can* do something
doesn't mean you *should* do something :)

HTH,

-n
--
---
nathan hruby <[EMAIL PROTECTED]>
uga enterprise information technology services
production systems support
---

"Back in the good old days, we would just look in the system log file to
see what was really going on. The new crowd of Linux users would rather
not have to do that, however; they expect the system to tell them,
politely, that their hardware is on fire and that they are about to deeply
regret not having run any backups since sometime last winter."
http://lwn.net/Articles/140815


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatically marking a tape as full

2005-07-27 Thread Martin Simmons
> On Tue, 26 Jul 2005 14:45:54 -0700, Jesse Keating <[EMAIL PROTECTED]> 
> said:

  Jesse> After all the backups in a given week occur, I'd like to automatically
  Jesse> mark the last tape used as full, so that the next set of backups uses a
  Jesse> new clean tape.  Is there a way to do this?

Really "Full" and not "Used"?  If the latter is OK, then you should be able to
configure the Pool resource to make it happen automatically.

If that doesn't work out, then the correct way to force the volstatus is to
invoke the bconsole update command, e.g.

echo 'update media volume=Daily002 volstatus=Used' | bconsole

This requires that you know the volume name.

__Martin


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatically marking a tape as full

2005-07-27 Thread Jesse Keating
On Tue, 2005-07-26 at 22:49 -0400, nathan r. hruby wrote:
> 
> If you have an autoloader you can simply swap mags and have bacula rescan
> the library, after that it should prefer those tapes instead of the ones
> out of the changer.  I think that's what you're getting at... weekly
> rotation of tape media through the changer to support the full retention
> period?

I needed this to be automated.  On the first Sunday of every month, I
need to do a second round of full backups to tape which will be shipped
off site.  Every Sunday a full backup is done, and these are kept
onsite.  So I just need that second round of full backups to start with
a clean tape so that I'm not taking part of the local full backup
content with the tapes to go offsite.  And this needs to happen on the
weekend when nobody is here.

> As to specifically marking a tape (or set of tapes) as Full to force
> the Director to pick a pre-defined tape I don't know.  You could probably
> manipulate the MySQL database behind Bacula's back and then HUP it to pick
> up changes... I might mention that just because you *can* do something
> doesn't mean you *should* do something :)
> 

Heh, thanks for the suggestion.

-- 
Jesse Keating
GameHouse -- Systems Engineer



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatically marking a tape as full

2005-07-27 Thread Jesse Keating
On Wed, 2005-07-27 at 10:53 +0100, Martin Simmons wrote:
> Really "Full" and not "Used"?  If the latter is OK, then you should be able to
> configure the Pool resource to make it happen automatically.

Well, I don't have a use only once clause because my backups are smaller
than the tape size itself.  I can squeeze two or maybe 3 full server
backups onto a single 100gig tape.  However when the tape is marked
Full, it will not be used anymore.

> If that doesn't work out, then the correct way to force the volstatus is to
> invoke the bconsole update command, e.g.
> 
> echo 'update media volume=Daily002 volstatus=Used' | bconsole
> 
> This requires that you know the volume name.

It is possible for me to do a single file backup, and have a Run After
Command that does this perhaps.  Does this seem logical:

Run After Job = /etc/bacula/markfull %v

where /etc/bacula/markfull expects a volume name as an argument and
issues a command to bconsole using this?

-- 
Jesse Keating
GameHouse -- Systems Engineer



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatically marking a tape as full

2005-07-27 Thread Martin Simmons
> On Wed, 27 Jul 2005 11:32:14 -0700, Jesse Keating <[EMAIL PROTECTED]> 
> said:

  Jesse> On Wed, 2005-07-27 at 10:53 +0100, Martin Simmons wrote:
  >> Really "Full" and not "Used"?  If the latter is OK, then you should be 
able to
  >> configure the Pool resource to make it happen automatically.

  Jesse> Well, I don't have a use only once clause because my backups are 
smaller
  Jesse> than the tape size itself.  I can squeeze two or maybe 3 full server
  Jesse> backups onto a single 100gig tape.  However when the tape is marked
  Jesse> Full, it will not be used anymore.

Ok, but Volume Use Duration might work.


  >> If that doesn't work out, then the correct way to force the volstatus is to
  >> invoke the bconsole update command, e.g.
  >> 
  >> echo 'update media volume=Daily002 volstatus=Used' | bconsole
  >> 
  >> This requires that you know the volume name.

  Jesse> It is possible for me to do a single file backup, and have a Run After
  Jesse> Command that does this perhaps.  Does this seem logical:

  Jesse> Run After Job = /etc/bacula/markfull %v

  Jesse> where /etc/bacula/markfull expects a volume name as an argument and
  Jesse> issues a command to bconsole using this?

Probably -- Run After Job certainly runs after Bacula's normal job termination
code.  I've never tried %v though.

__Martin


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatically marking a tape as full

2005-07-28 Thread Alan Brown

On Wed, 27 Jul 2005, Jesse Keating wrote:


I needed this to be automated.  On the first Sunday of every month, I
need to do a second round of full backups to tape which will be shipped
off site.


Right now you need a second backupset and pool pool defined with its own 
schedule




---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatically marking a tape as full

2005-07-28 Thread Jesse Keating
On Wed, 2005-07-27 at 20:20 +0100, Martin Simmons wrote:
> Probably -- Run After Job certainly runs after Bacula's normal job termination
> code.  I've never tried %v though.

I just tried this and it works a treat.


28-Jul 15:31 dragul: RunAfter: Connecting to Director 192.168.1.66:9101
28-Jul 15:31 dragul: RunAfter: 1000 OK: dragul Version: 1.36.3 (22 April 2005)
28-Jul 15:31 dragul: RunAfter: Enter a period to cancel a command.
28-Jul 15:31 dragul: RunAfter: update media volume=BNR630 volstatus=FullUsing 
default Catalog name=MyCatalog DB=bacula
28-Jul 15:31 dragul: RunAfter: New Volume status is: Full
28-Jul 15:31 dragul: RunAfter: You have messages.
28-Jul 15:31 dragul: RunAfter: Volume BNR630 was marked as full.


Looks like this will do exactly what I need it to do, thanks for the
help.

I created the script in Python, just because I need to continue to grow
my python skills.  It just takes an argument (%v) and uses this value in
a string it passes to a pipe it opens to bconsole.
-- 
Jesse Keating
GameHouse -- Systems Engineer



---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users