SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Delete old Volumes for Filebackup
Author Message
Post Delete old Volumes for Filebackup 
Hello Bacula users,

I use s3fs backend with local cache for Amazon Backup for Bacula. Bacula
is configured to automatically label volumes and to use each volume for
a single job only (and to limit the size of the files to 5 GB).

Generation of Backups is great, but more and more Volumes are created.
How can I purge / delete volumes via Bacula to delete the files on the
s3fs ?

Practically:

/backup/Volume0001
/backup/Volume......
/backup/Volume0100

How can I make Bacula remove /backup/Volume0010 from disk and from
database ?

Regards,
Robert

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post Delete old Volumes for Filebackup 
On Thu, Dec 22, 2011 at 7:52 AM, Robert Heinzmann (reg) <reg < at > elconas.de ([email]reg < at > elconas.de[/email])> wrote:
Hello Bacula users,

I use s3fs backend with local cache for Amazon Backup for Bacula. Bacula
is configured to automatically label volumes and to use each volume for
a single job only (and to limit the size of the files to 5 GB).

Generation of Backups is great, but more and more Volumes are created.
How can I purge / delete volumes via Bacula to delete the files on the
s3fs ?

I use the attached perl script that I found on the list a couple of years ago. I run it from root's crontab nightly. This script assumes that volumes end up in the scratch pool once they're recycled. You'll also need to edit the variables at the top of the script to point to where your volumes are stored. Here is one of my pool definitions that shows the volumes going to the scratch pool when recycled.


Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Recycle = no
  Recycle Oldest Volume = no
  Recycle Current Volume = no
  RecyclePool = Scratch
  AutoPrune = yes
  Volume Retention = 14 days
  Volume Use Duration = 23 hours
  Maximum Volume Jobs = 1
  LabelFormat = "${Client}_${Job}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}:${Second:p/2/0/r}_${Level}"
}






--
Jon Schewe | http://mtu.net/~jpschewe

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB