From: Wyness Casama <[EMAIL PROTECTED]>
Date: March 28, 2006 10:17:57 PM PST (CA)
To: Dan Langille <[EMAIL PROTECTED]>
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Automated Restore to Local Disk

On 28-Mar-06, at 12:43 PM, Dan Langille wrote:

On 28 Mar 2006 at 12:33, Wyness Casama wrote:

Hi all,

I've been working on a solution to restore files from remote clients
to a directory tree on the server running the director. I believe
that by default, the file restores to the original client instead of
the local disk.

How can I define a local restore destination in a scheduled job?

Does this help you?

*run job=RestoreFiles client=pepper-fd
Please enter a JobId for restore: 9482
Run Restore job
JobName:    RestoreFiles
Bootstrap:  *None*
Where:      /tmp/bacula-restores
Replace:    always
Client:     pepper-fd
Storage:    DLT
JobId:      9482
When:       2006-03-28 15:41:53
Catalog:    MyCatalog
Priority:   10
OK to run? (yes/mod/no):

The key being: specify the client when you issue the run command.

-- Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php



Right now I'm using a schedule to trigger the job. The schedule works, and restores start, but they start restoring to the remote FD client. I'd like for them to restore to the local backup server that hosts both the DIR and the SD services. In my config, I've defined the following:

---------------------------------------------------------

## Schedule
Schedule {          # Standard weekly cycle with full backup on Sat
  Name              = "RestoreSchedule"

Run = Pool="differential1" DifferentialPool="differential1" FullPool="fulls" Sunday at 1:10am Run = Pool="differential2" DifferentialPool="differential2" FullPool="fulls" Monday at 1:10am Run = Pool="differential3" DifferentialPool="differential3" FullPool="fulls" Tuesday at 1:10am Run = Pool="differential1" DifferentialPool="differential1" FullPool="fulls" Wednesday at 1:10am Run = Pool="differential" DifferentialPool="differential2" FullPool="fulls" Thursday at 1:10am Run = Pool="differential" DifferentialPool="differential3" FullPool="fulls" Friday at 1:10am
  Run = Pool="fulls" FullPool="fulls" Saturday at 1:10am
}

## Default JobDefs
JobDefs {           # Default automated restore definition
  Name              = "ScheduledRestore"

   Type             = "Restore"
   Priority                 = "50"
  Storage           = "TapeArray1"
  Pool              = "Default"
#  JobID                    = "0"
  Maximum Concurrent Jobs = "1"
  Schedule          = "RestoreSchedule"
  Replace           = "ifnewer"
  Messages          = "Standard"
}

## Job Definition
Job {               # Restored selected files for automatic restore
  Name              = "restore-remoteclient"

  Client                    = "remoteclient"
  JobDefs           = "ScheduledRestore"
  FileSet           = "remoteclient_fileset"
  Where             = "/var/holding/restore/remoteclient/fileset"
  Bootstrap         = "/var/db/bacula/remoteclient.bsr"
}

---------------------------------------------------------

Is there something that I might have missed?

Thanks,

 -- Wyness


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to