Bacula: Restoring from Copy Jobs

On my previous Bacula post, I demonstrated how create off-site backup using Copy Jobs. But what to do when you need (knock-on-wood) use the Copy Job to restore data? It’s quite simple, actually.

You have two possibles ways to use you Copy Jobs:

  1. The “extreme way”: purge your original backup Jobs. According to the official documentation, “if bacula finds a Copy when a Job record is purged (deleted) from the catalog, it will promote the Copy as real backup and will make it available for automatic restore”. I’ve never have to use this method, since the next way is much simpler (and safer).
  2. The “easy way”: use an additional parameter to the “restore” command in bconsole. I’ve tried this method myself and it’s the way I recommend using. Basically, run restore like this:
  3. restore client=YourClientName copies

    And continue to the restore as usual. The difference is when Bacula prints out the JobIDs that it will use for this restore. You’ll see the Copy JobIDs instead of the original ones.

And that’s it.


Tags: , , ,

3 responses to “Bacula: Restoring from Copy Jobs”

  1. francesco micelli says :

    Thank you for this great tutorial. Ok, I have an off-site copy of my pools; but how can I restore theme without the catalog in the case of a DR?
    Thank you

    • rodrigorenie says :

      Well, that’s a big problem.

      The good news is that the data in your tapes are still accessible, the bad news is that is reeeally hard to extract them. You’ll have to extract, JobID by JobID, the data from your tapes. The hard part is discovering wich JobID is interesting to you, just imagine: in a single tape (depending on your configuration) you can have several JobID from different servers with different levels (Full, Inc, Diff). It’s a mess.

      You must use the utilities described in

      Good Luck.

Trackbacks / Pingbacks

  1. Off-Site Backups with Bacula | Linux Corp. - 05/16/2013

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: