Bacula-users

[Bacula-users] [SOLVED] Can volumes on an internal HDD be synchronised to more than one external HDD?

2010-03-09 23:27:56
Subject: [Bacula-users] [SOLVED] Can volumes on an internal HDD be synchronised to more than one external HDD?
From: <bacula-users AT catcons.co DOT uk>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 10 Mar 2010 09:51:55 +0530
Hello  :-)

In case anyone else is trying to set up something similar, I'll answer my
own post with a simpler solution than using Bacula to implement the concept.

1. Create udev rules to run a script when one of the external HDDs 
   is plugged in.
2. Create the script to:
   a) Stop Bacula and the database.
   b) rsync the Bacula storage on internal HDD to the external HDD.
   c) Backup the database to the external HDD
   d) Unmount the external HDD.
   e) Start the database and Bacula.

This would create a snapshot of the whole Bacula system on external HDD.
Snaphots (for example using LVM) could be used to minimise the Bacula system
down time.

Best

Charles

-----Original Message-----
From: Charles [mailto:CharlesA AT auroville.org DOT in] On Behalf Of
bacula-users AT catcons.co DOT uk
Sent: 09 March 2010 18:49
To: 'bacula-users AT lists.sourceforge DOT net'
Subject: Can volumes on an internal HDD be synchronised to more than one
external HDD?

Hello  :-)

I would like to implement a Bacula 5.0.1 system with backup volumes on
internal HDD storage and to have at least two external HDDs which
essentially mirror the internal HDD storage.  The purpose is to have one of
the external HDDs off site at all times.

Is this possible?  

I have studied the Bacula Main Reference (version 5.0.2, 14 February 2010)
and the nearest I've got to a solution is using a Job with Type = Copy:

1. Define a pool (say "Full - external HDD 1") with
     Storage = <name of external HDD 1 Storage definition>
2. Define a pool (say "Full") with
     NextPool = "Full - external HDD 1"
3. Define a job (say named "Update external HDD 1 with Fulls") with
     Type = Copy
     SelectionType = PoolUncopiedJobs

Which should (TM) be OK for a single external HDD but I don't think it will
work for two HDDs because:

* Pool "Full" can only have one NextPool
* If "PoolUncopiedJobs" in "SelectionType = PoolUncopiedJobs" refers to 
  Copy source jobs (not to target Jobs) then jobs already copied to one  
  of the other external HDD will not be copied to this one.

Best

Charles


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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>