From owner-freebsd-questions@FreeBSD.ORG Wed Sep 29 13:39:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD8B5106566C for ; Wed, 29 Sep 2010 13:39:52 +0000 (UTC) (envelope-from drescherjm@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 679598FC1B for ; Wed, 29 Sep 2010 13:39:52 +0000 (UTC) Received: by bwz15 with SMTP id 15so674610bwz.13 for ; Wed, 29 Sep 2010 06:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tJO2Tg9FVyD04YcxB2kqbC928BNXCWorDLlGjpS6GKg=; b=VrhJ6pYRyjgKLuaUMRgIMqQ+Pu+mL564r/6iNLFqQAIQZzRxedtENM8ZzKcWWCXmpI iz7W8HT0qtOU20IJPiSJj9L9hKPu8IJHCqW1iGZ8QZ28nicKUOQ7kijjQP5vA1QqwZNg Bm74dSyMIruLIkISsCM3yU1MKuV5ula02W5bQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gULkB6dQ2Rn8xHt3amFGgYaiOQ6tf92MG+8H+kAzzaK1ZBGKEiCC3dscTZitFj9SNA YejplW3pi0mb+jMl1FbGF4uME3UTz+2DJqUPS+32VYD3EkVzb1QsuMuKLPILmWbbaZtZ +Xu1pvV5KnpL22K0lo28c4hNhKkYYLRZXmdLU= MIME-Version: 1.0 Received: by 10.204.112.146 with SMTP id w18mr1328598bkp.16.1285765955578; Wed, 29 Sep 2010 06:12:35 -0700 (PDT) Received: by 10.204.49.68 with HTTP; Wed, 29 Sep 2010 06:12:35 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Sep 2010 09:12:35 -0400 Message-ID: From: John Drescher To: Albin Vega Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Mailingliste , Bacula Mailingliste Subject: Re: [Bacula-users] Recycling of volumes in Bacula X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 13:39:52 -0000 2010/9/29 Albin Vega : > Hello > > I have now set up my first couple of backup jobs, both local and over > internet and it seems to bee working fine!! Quite happy about this since = its > my first time using Bacula! However=A0I have a=A0couple of=A0questions=A0= about > version control an recycling of volumes. > First a little info. I have 5 jobs running, each with its ovn fd/sd and p= ool > so they can run at the same time. I use incremental backup. Here is the > config of the pool and client for one of the jobs. > > } > # File Pool definition > Pool { > =A0 Name =3D buzzy-pool > =A0 Pool Type =3D Backup > #=A0 Accept Any Volume =3D yes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 # write on any volume in the pool > =A0 LabelFormat =3D "buzzy-" > =A0 Recycle =3D yes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Bacula can automatically > recycle Volumes > =A0 AutoPrune =3D yes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0# Prune expired volumes > =A0 Volume Retention =3D 1 year=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 # 1 year > =A0 Maximum Volume Bytes =3D 50G=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Limit Volum= e size to something > reasonable > =A0 Maximum Volumes =3D 10=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =A0# Limit number of Volumes in Pool > } > > Question: When a volume gets recycled, are all the files on that volume j= ust > deleted, When a volume gets recycled the volume gets overwritten in the next backup that uses it. I think now you can have it automatically truncate if you want. >or is it just files that has been deleted on the server being > backed up that is deleted? No definitely not that. > client { > =A0 Name =3D buzzy-fd > =A0 Address =3D buzzy.client.net > =A0 FDPort =3D 9102 > =A0 Catalog =3D MyCatalog > =A0 Password =3D "Password"=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # p= assword for FileDaemon 2 > =A0 File Retention =3D=A06 months=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 #=A06 mon= ths > =A0 Job Retention =3D 6 months=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # six mon= ths > =A0 AutoPrune =3D yes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =A0# Prune expired Jobs/Files > > > What I would really like is this: > 1. When a deleted file gets older than 6 months (a file that is deleted i= n > the original server beeing backed up) I would like it to=A0be deleted=A0i= n the > Bacula system. But I dont want files that in general is older than 6 mont= hs > (and not deleted from the original server beeing backed up) to be deleted > from the Bacula system. Bacula does not have that feature. Also remember that recycling is an entire volume at once not parts of the volume get deleted over time. Bacula volumes are append only then delete the entire volume to recycle. The reason for this is bacula supports tape and other formats not just disk and all formats work the same way. > 2. When sombody changes a file, the file gets backed up again by Bacula, = and > every time its chaned it get backed up. Is there a way to configure that > Bacula only keeps the 4 -5 last versions of this file, and delete the old= er > ones? > Bacula does not work this way. And because of my answers above I am not sure you could force it do do what you want. John