On 06/22/10 21:16, James Harper wrote: >> >> I have a system currently being backed up and I'd like to daily > perform a >> restore of it's backup to a shadow system (think warm-standby). >> >> While I guess I could rsync the appropriate dirs between the systems, > is >> there a way I could leverage this through a restore? >> > > You can pipe commands directly into bconsole, eg: > > bconsole <<EOF > restore client=target-fd > 5 > mark * > done > yes > EOF > > The '5' is the 'Select most recent backup for a client' option. If you > knew the jobid you could just put that in the restore command eg > 'restore jobid=12345 client=target-fd' but if you want to restore the > latest backup then you'll need to use the former approach. > > You could also issue a 'wait' command after you start the restore but I > think you'd need to know the jobid of the job you just started for that > to be useful, and getting that might be hard. > > There may be a better way of scripting bacula too, but the above is what > I use when I'm just testing.
However, if your purpose is simply to mirror, rather than to continually test the latest backup, then it's probably considerably more *efficient* to use rsync. In fact, *unless* you want to do the daily restore as a test to make sure the backups are good, you might want to consider mirroring the live machine to the warm standby with rsync, then backing up the warm standby. -- Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355 ala...@caerllewys.net ala...@metrocast.net p...@co.ordinate.org Renaissance Man, Unix ronin, Perl hacker, Free Stater It's not the years, it's the mileage. ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users