Bacula-users

Re: [Bacula-users] Recovering to a different host

2008-09-10 14:56:10
Subject: Re: [Bacula-users] Recovering to a different host
From: Dan Langille <dan AT langille DOT org>
To: Russell Sutherland <russ AT quist DOT ca>
Date: Wed, 10 Sep 2008 14:55:28 -0400
Russell Sutherland wrote:
> I have a normal bacula situation, in which clientA is being backed up
> via bacula-fd to serverA which runs both bacula-sd and bacula-dir.
> 
> In attempting to clone/replace/upgrade clientA to another machine clientB
> are there any techniques to restore or copy a list of files and directories
> from clientA and have them "restored/recovered" onto the new clientB machine?
> 
> I understand that in the  normal case, a restore places the files onto
> the same machine in which the bacula-fd process is running.

The above paragraph is always correct.

There are two client parameters in a restore:

Backup Client - where the backup came from
Restore Client - where the restore is going to

The following is an example I just ran:

Building directory tree for JobId 21145 ...
Building directory tree for JobId 21171 ...
Building directory tree for JobId 21515 ...
6 Jobs, 1,895 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$ mark *
2,005 files marked.
$ don
Bootstrap records written to /home/bacula/working/bacula-dir.restore.2.bsr

The job will require the following
    Volume(s)                 Storage(s)                SD Device(s)
===========================================================================

    DLT7000-001023            DLT                       DLT
    DLT7000-001039            DLT                       DLT


2,005 files selected to be restored.

Run Restore job
JobName:         RestoreFiles
Bootstrap:       /home/bacula/working/bacula-dir.restore.2.bsr
Where:           /tmp/bacula-restores
Replace:         always
FileSet:         Full Set
Backup Client:   polo-fd
Restore Client:  polo-fd
Storage:         DLT
When:            2008-09-10 19:53:42
Catalog:         MyCatalog
Priority:        10
OK to run? (yes/mod/no): mod
Parameters to modify:
      1: Level
      2: Storage
      3: Job
      4: FileSet
      5: Restore Client
      6: When
      7: Priority
      8: Bootstrap
      9: Where
     10: File Relocation
     11: Replace
     12: JobId
Select parameter to modify (1-12): 5
The defined Client resources are:
      1: undef-fd
      2: laptop-fd
      3: laptop-wifi-fd
      4: wocker-fd
      5: bast-fd
      6: ducky-fd
      7: polo-fd
      8: nz-fd
      9: nyi-fd
     10: supernews-fd
     11: lists-fd
     12: w2k-fd
     13: w2kserver-fd
     14: pepper-fd
     15: mtwenty-fd
     16: ngaio-fd
     17: m21-fd
     18: nebula-fd
     19: macbook-fd
Select Client (File daemon) resource (1-19): 14
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /home/bacula/working/bacula-dir.restore.2.bsr
Where:           /tmp/bacula-restores
Replace:         always
FileSet:         Full Set
Backup Client:   polo-fd
Restore Client:  pepper-fd
Storage:         DLT
When:            2008-09-10 19:53:42
Catalog:         MyCatalog
Priority:        10
OK to run? (yes/mod/no):

In the above, you can see I changed the Restore Client to something 
else.  That's what you want to do.

-- 
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:     http://www.pgcon.org/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>