Re: [Bacula-users] Renaming volumes...

2009-10-21 Thread John Doe
From: Markus Falb 
> Bruno Friedmann wrote:
> > John Doe wrote:
> > > Or, at worse, how can I restart from 'zero'? Delete from the console
> > > and then the files?
> > You can use the delete volume on bconsole ( this ensure not leaving
> > orphaned file/jobs/volumes in db ) After that you can delete
> > corresponding volumes. (I would tend to prefer this one)
> There is also the relabel console command. Volume has to be Purged or 
> Recycle Status for relabel to work, so you probably have to purge before 
> relabel will work.

The delete volume worked.

Thx,
JD


  

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming volumes...

2009-10-17 Thread Markus Falb
Bruno Friedmann wrote:

> John Doe wrote:
>> Hi,
>> 
>> I use a USB disk as storage and at first I had volumes labeled like
>> this:
>> 
>>   Label Format = "${Client}.${Year}-${Month:p/2/0/r}.full.v${NumVols}"
>>   Label Format = "${Client}.${Year}-${Month:p/2/0/r}.diff.v${NumVols}"
>>   Label Format = "${Client}.${Year}-${Month:p/2/0/r}.incr.v${NumVols}"
>> 
>> But, after seeing that the date is useless/confusing with the
>> recycling, I'd like to use this:
>> 
>>   Label Format = "${Client}.full.v${NumVols}" Label Format =
>>   "${Client}.diff.v${NumVols}" Label Format =
>>   "${Client}.incr.v${NumVols}"
>> 
>> Is there a list of steps to follow or is it a nightmare?
> Not a nightmare, but lots of sql digging ...
> 
>> Or, at worse, how can I restart from 'zero'? Delete from the console
>> and then the files?
> 
> You can use the delete volume on bconsole ( this ensure not leaving
> orphaned file/jobs/volumes in db ) After that you can delete
> corresponding volumes. (I would tend to prefer this one)

There is also the relabel console command. Volume has to be Purged or 
Recycle Status for relabel to work, so you probably have to purge before 
relabel will work.

-- 
best regards,
markus


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming volumes...

2009-10-16 Thread Bruno Friedmann
John Doe wrote:
> Hi,
> 
> I use a USB disk as storage and at first I had volumes labeled like this:
> 
>   Label Format = "${Client}.${Year}-${Month:p/2/0/r}.full.v${NumVols}"
>   Label Format = "${Client}.${Year}-${Month:p/2/0/r}.diff.v${NumVols}"
>   Label Format = "${Client}.${Year}-${Month:p/2/0/r}.incr.v${NumVols}"
> 
> But, after seeing that the date is useless/confusing with the recycling, I'd 
> like to use this:
> 
>   Label Format = "${Client}.full.v${NumVols}"
>   Label Format = "${Client}.diff.v${NumVols}"
>   Label Format = "${Client}.incr.v${NumVols}"
> 
> Is there a list of steps to follow or is it a nightmare?
Not a nightmare, but lots of sql digging ...

> Or, at worse, how can I restart from 'zero'?
> Delete from the console and then the files?

You can use the delete volume on bconsole ( this ensure not leaving orphaned 
file/jobs/volumes in db )
After that you can delete corresponding volumes.
(I would tend to prefer this one)

> 
> Thx,
> JD
> 
> 
>   
> 

-- 

 Bruno Friedmann

Ioda-Net Sàrl
  2830 Vellerat - Switzerland

  Tél : ++41 32 435 7171
  Fax : ++41 32 435 7172
  gsm : ++41 78 802 6760
  www.ioda-net.ch

 Centre de Formation et de Coaching En Ligne
 www.cfcel.com

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Renaming volumes...

2009-10-16 Thread John Doe
Hi,

I use a USB disk as storage and at first I had volumes labeled like this:

  Label Format = "${Client}.${Year}-${Month:p/2/0/r}.full.v${NumVols}"
  Label Format = "${Client}.${Year}-${Month:p/2/0/r}.diff.v${NumVols}"
  Label Format = "${Client}.${Year}-${Month:p/2/0/r}.incr.v${NumVols}"

But, after seeing that the date is useless/confusing with the recycling, I'd 
like to use this:

  Label Format = "${Client}.full.v${NumVols}"
  Label Format = "${Client}.diff.v${NumVols}"
  Label Format = "${Client}.incr.v${NumVols}"

Is there a list of steps to follow or is it a nightmare?
Or, at worse, how can I restart from 'zero'?
Delete from the console and then the files?

Thx,
JD


  

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming Volumes?

2005-06-04 Thread Kern Sibbald
On Friday 03 June 2005 23:11, Mike Reinehr wrote:
> On Friday 03 June 2005 04:02 pm, Kern Sibbald wrote:
> > On Friday 03 June 2005 22:51, Mike Reinehr wrote:
> > > On Friday 03 June 2005 03:39 pm, Misty Stanley-Jones wrote:
> > > > Can I rename a disk volume somehow?  i figured out how I want to
> > > > label the volumes now but it was wrong yesterday.  The backups were
> > > > good, but the names are not what I want.  I have auto labeling so I
> > > > assume that when they expirre they will just get deleted but can I
> > > > fix them before that?  One of them does not expire for a month!
> > > >
> > > > Misty
> > >
> > > Misty,
> > >
> > > I think that the only way to do what you wish is to purge the volume
> > > from the database. Rename (mv) the actual disk volume and then run
> > > bscan to recreate the database entry with the new name.
> > >
> > > Alternatively, if you are handy with SQL you might just be able to
> > > update the volume records in the database directly and then rename the
> > > actual disk volume.
> >
> > Unfortunately, neither of those good ideas will help.  The Volume name is
> > embedded in the Bacula Volume label record on the medium so that Bacula
> > can find out what the Volume name really is.  To change it, you would
> > need to change the Volume data, which is not something I recommend. All
> > records are contained in blocks, and all blocks are checksummed, so it
> > would be a real pain to try to change a Volume name ...
> >
> > Doing a bcopy might work, but it is largely untested. However, bcopy does
> > not update the catalog, so your first suggestion might be valid after a
> > bcopy. If anyone tries it, please let me know ...
>
>   Sounds as if you were being generous when you said "those good ideas!" 
> ;-)

No, not generous, just happy that there are people like you who take the time 
respond, and I want to avoid to discourage you from continuing to give your 
ideas ...  :-)

>
> cmr

-- 
Best regards,

Kern

  (">
  /\
  V_V


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming Volumes?

2005-06-03 Thread C M Reinehr
On Friday 03 June 2005 04:14 pm, Misty Stanley-Jones wrote:
> On Friday 03 June 2005 04:02 pm, Kern Sibbald wrote:
> > Unfortunately, neither of those good ideas will help.  The Volume name is
> > embedded in the Bacula Volume label record on the medium so that Bacula
> > can find out what the Volume name really is.  To change it, you would
> > need to change the Volume data, which is not something I recommend. All
> > records are contained in blocks, and all blocks are checksummed, so it
> > would be a real pain to try to change a Volume name ...
> >
> > Doing a bcopy might work, but it is largely untested. However, bcopy does
> > not update the catalog, so your first suggestion might be valid after a
> > bcopy. If anyone tries it, please let me know ...
>
> I will try it after I have another full backup cycle.
>
> Thanks,
> Misty

This might just work, with one minor addition. Since I have bacula disk 
volumes, too, I decided to give it a quick try. I used bcopy to copy one disk 
volume to another, new one. Then, I used bls to do a quick test of the 
integrity of the new volume. It didn't work -- it kept complaining about the 
volume label.

So, as another test, using bconsole, I used the label command to create a new 
disk volume in the archive, as well as in the catalog. Then, I used the bcopy 
program to copy an existing archive into the new volume and it seemed to 
work. Now, bls would list all of the same files that were in the original 
volume and displayed the new volume name.

The next step would be to use the bscan program to enter this data into the 
catalog, but I don't seem to have a copy of bscan on my system. :(

cmr

-- 
C M Reinehr
AMS Enterprises, LLC (334) 269-4358 (Voice)
323 Bibb St
P O Box 20
Montgomery AL 36111-0020  (334) 262-1706 (Fax)

Debian 'Sarge': Registered Linux User #182151
--
"Simple, clear purpose and principles give rise to complex and intelligent
behavior.  Complex rules and regulations give rise to simple and stupid
behavior." -- Dee Hock


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming Volumes?

2005-06-03 Thread Mike Reinehr
On Friday 03 June 2005 04:02 pm, Kern Sibbald wrote:
> On Friday 03 June 2005 22:51, Mike Reinehr wrote:
> > On Friday 03 June 2005 03:39 pm, Misty Stanley-Jones wrote:
> > > Can I rename a disk volume somehow?  i figured out how I want to label
> > > the volumes now but it was wrong yesterday.  The backups were good, but
> > > the names are not what I want.  I have auto labeling so I assume that
> > > when they expirre they will just get deleted but can I fix them before
> > > that?  One of them does not expire for a month!
> > >
> > > Misty
> >
> > Misty,
> >
> > I think that the only way to do what you wish is to purge the volume from
> > the database. Rename (mv) the actual disk volume and then run bscan to
> > recreate the database entry with the new name.
> >
> > Alternatively, if you are handy with SQL you might just be able to update
> > the volume records in the database directly and then rename the actual
> > disk volume.
>
> Unfortunately, neither of those good ideas will help.  The Volume name is
> embedded in the Bacula Volume label record on the medium so that Bacula can
> find out what the Volume name really is.  To change it, you would need to
> change the Volume data, which is not something I recommend. All records are
> contained in blocks, and all blocks are checksummed, so it would be a real
> pain to try to change a Volume name ...
>
> Doing a bcopy might work, but it is largely untested. However, bcopy does
> not update the catalog, so your first suggestion might be valid after a
> bcopy. If anyone tries it, please let me know ...

Sounds as if you were being generous when you said "those good ideas!" 
;-)

cmr
-- 
Debian 'Sarge': Registered Linux User #241964

"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming Volumes?

2005-06-03 Thread Misty Stanley-Jones
On Friday 03 June 2005 04:02 pm, Kern Sibbald wrote:
>
> Unfortunately, neither of those good ideas will help.  The Volume name is
> embedded in the Bacula Volume label record on the medium so that Bacula can
> find out what the Volume name really is.  To change it, you would need to
> change the Volume data, which is not something I recommend. All records are
> contained in blocks, and all blocks are checksummed, so it would be a real
> pain to try to change a Volume name ...
>
> Doing a bcopy might work, but it is largely untested. However, bcopy does
> not update the catalog, so your first suggestion might be valid after a
> bcopy. If anyone tries it, please let me know ...

I will try it after I have another full backup cycle.

Thanks,
Misty


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming Volumes?

2005-06-03 Thread Kern Sibbald
On Friday 03 June 2005 22:51, Mike Reinehr wrote:
> On Friday 03 June 2005 03:39 pm, Misty Stanley-Jones wrote:
> > Can I rename a disk volume somehow?  i figured out how I want to label
> > the volumes now but it was wrong yesterday.  The backups were good, but
> > the names are not what I want.  I have auto labeling so I assume that
> > when they expirre they will just get deleted but can I fix them before
> > that?  One of them does not expire for a month!
> >
> > Misty
>
> Misty,
>
> I think that the only way to do what you wish is to purge the volume from
> the database. Rename (mv) the actual disk volume and then run bscan to
> recreate the database entry with the new name.
>
> Alternatively, if you are handy with SQL you might just be able to update
> the volume records in the database directly and then rename the actual disk
> volume.

Unfortunately, neither of those good ideas will help.  The Volume name is 
embedded in the Bacula Volume label record on the medium so that Bacula can 
find out what the Volume name really is.  To change it, you would need to 
change the Volume data, which is not something I recommend. All records are 
contained in blocks, and all blocks are checksummed, so it would be a real 
pain to try to change a Volume name ...

Doing a bcopy might work, but it is largely untested. However, bcopy does not 
update the catalog, so your first suggestion might be valid after a bcopy.  
If anyone tries it, please let me know ...


-- 
Best regards,

Kern

  (">
  /\
  V_V


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Renaming Volumes?

2005-06-03 Thread Mike Reinehr
On Friday 03 June 2005 03:39 pm, Misty Stanley-Jones wrote:
> Can I rename a disk volume somehow?  i figured out how I want to label the
> volumes now but it was wrong yesterday.  The backups were good, but the
> names are not what I want.  I have auto labeling so I assume that when they
> expirre they will just get deleted but can I fix them before that?  One of
> them does not expire for a month!
>
> Misty

Misty,

I think that the only way to do what you wish is to purge the volume from the 
database. Rename (mv) the actual disk volume and then run bscan to recreate 
the database entry with the new name.

Alternatively, if you are handy with SQL you might just be able to update the 
volume records in the database directly and then rename the actual disk 
volume.

cmr

-- 
Debian 'Sarge': Registered Linux User #241964

"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Renaming Volumes?

2005-06-03 Thread Misty Stanley-Jones
Can I rename a disk volume somehow?  i figured out how I want to label the 
volumes now but it was wrong yesterday.  The backups were good, but the names 
are not what I want.  I have auto labeling so I assume that when they expirre 
they will just get deleted but can I fix them before that?  One of them does 
not expire for a month!

Misty


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Renaming volumes without loosing data

2005-04-13 Thread Alexander Bergolth
Hi!
Is there a way to relabel a tape without loosing the data stored on it 
and without affecting the associated catalog data?

Is it possible to just update the corresponding Media.VolumeName in the 
database and relabel the tape with "btape label"?

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

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users