Bacula-users

[Bacula-users] numbering tapes

2013-01-08 12:09:23
Subject: [Bacula-users] numbering tapes
From: Tim Dunphy <bluethundr AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 8 Jan 2013 12:06:06 -0500
Hello,

 I've set auto-labeling in my pool definition:

# Default pool definition
Pool {
  Name = "Default"
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 45 days          # a month and a half   
  Maximum Volume Bytes = 25G        # Limit Volume size to something reasonable
  Maximum Volumes = 16               # Limit number of Volumes in Pool
  Volume Use Duration = 7d           # Use a new tape every week
  Recycle = yes                       # Recycling
  Recycle Oldest Volume = yes         # Recycle the oldest volume
  LabelFormat = "jf-backup-tape-"
}


And I need to re-create my tapes due to a new backup strategy. But I notice that the tape numbering scheme seems to pick up from where the last pool left off:

Select the Pool (1-3): 3
+---------+---------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName          | VolStatus | Enabled | VolBytes       | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+---------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|     207 | jf-backup-tape-0001 | Full      |       1 | 26,843,542,493 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-03 03:48:23 |
|     208 | jf-backup-tape-0002 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-03 05:11:43 |
|     209 | jf-backup-tape-0003 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-03 06:27:53 |
|     210 | jf-backup-tape-0210 | Full      |       1 | 26,843,493,191 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-04 02:19:26 |
|     211 | jf-backup-tape-0211 | Full      |       1 | 26,843,502,243 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-04 03:50:07 |
|     212 | jf-backup-tape-0212 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-04 05:15:09 |
|     213 | jf-backup-tape-0213 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-04 06:31:47 |
|     214 | jf-backup-tape-0214 | Full      |       1 | 26,843,529,199 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-05 02:32:19 |
|     215 | jf-backup-tape-0215 | Full      |       1 | 26,843,530,749 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-05 03:57:34 |
|     216 | jf-backup-tape-0216 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-05 05:22:34 |
|     217 | jf-backup-tape-0217 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-05 06:39:16 |
|     218 | jf-backup-tape-0218 | Full      |       1 | 26,843,484,949 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-06 02:37:38 |
|     219 | jf-backup-tape-0219 | Full      |       1 | 26,843,507,429 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-06 03:58:47 |
|     220 | jf-backup-tape-0220 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-06 05:37:46 |
|     221 | jf-backup-tape-0221 | Full      |       1 | 26,843,507,914 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-06 06:54:03 |
|     222 | jf-backup-tape-0222 | Full      |       1 | 26,843,496,040 |        6 |    3,888,000 |       1 |    0 |         0 | File      | 2013-01-07 02:48:34 |
+---------+---------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+

Is there any way (maybe by manipulating the database directly) to re-set the tape numbering scheme so that I can have the tapes labeled 0001-0025?

Thanks
Tim

--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>