Re: [Bacula-users] Automated restore job?
2010-06-23 14:02:02
Thanks for the replies:
- rsync isn't available for social and security reasons. Otherwise it's
the right way to do this.
- Piping the commands makes sense except it gets complicated. The example
you had would restore client to the same FD but I need it to be restored to
a different FD.
It may be that I have to do a large piped command though. The restore
command only accepts "client=xxxx" which it then presumes to be the "Backup
Client" as well as "Restore Client". A "client=foofoo-fd" results in:
JobName: RestoreFiles
Bootstrap: /var/bacula/working/mama-dir.restore.184.bsr
Where: /u/bacula/restores
Replace: always
FileSet: JustRoot Set
Backup Client: foofoo-fd
Restore Client: foofoo-fd
Storage: foofooFiles
When: 2010-06-23 12:35:34
Catalog: MamaCatalog
Priority: 10
Plugin Options: *None*
I need to somehow specify the Restore Client to be barbar-fd before the job
gets started.
The example restore job resource looks like:
Job {
Name = "RestoreFiles"
Type = Restore
Client = Any-client
FileSet = "Any-FileSet"
Storage = Any-storage
Where = /tmp/bacula-restores
Messages = Standard
Pool = Default
}
The documentation for the Job resource says, "Only a single Client may be
specified in any one Job." It seems the building a restore job with a
different backup client and restore client isn't possible. This would be
the nicest as I could then have definitions like:
Job {
Name = "foofooRestore"
Type = Restore
Backup Client = foofoo-fd
Restore Client = barbar-fd
FileSet = "Important Set"
Storage = foofooFiles
Messages = Standard
Pool = Default
}
Then to execute the restore I could: run job=foofooRestore yes
I may end up having to do something like:
barbar# ssh foofoo "tar -C / -cf - path1 path2" | (cd / tar xf -)
Any other ideas?
Thanks for the thoughts so far!
peter
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|