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:
- 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).
- 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:
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.