Bill,
I’m glad to hear that you arrived well.
Thank you very much for this script.
I checked this script and if I understand well this code, here we need to
know JobID when we want to start auto restore, which we need to put in
command line parameters ?



On January 30, 2019 at 1:37:15 AM, Bill Arlofski (waa-bac...@revpol.com)
wrote:

On 1/23/19 4:53 AM, Petar Kozic wrote:
> Thank you Bill.
> Sure, I will contact you next week.
> Best regards.

On 1/29/19 1:56 AM, Petar Kozic wrote:> Hi Bill,
> just reminder to post your scripts :)
> Thank you !


Hello Petar,

Well, safely back home in the US, recovering from a very busy week and long
travel day back. :)

OK, for now, I have attached my AutoRestoreAndVeryfy.sh script.


It may be run from a RunScript in a Backup job or an Admin job, from cron,
or
even manually. You just need to make sure the correct command line
parameters
are supplied.

I think it is pretty well documented in comments near the top. Please take
a
look there to understand some of the details and limitations.

Currently it will restore the entire backup job, then run each type of
verify
job against the backup job. It will "wait" for each job to finish before
initiating the next. If you do not want any of the verify jobs and only
want
the restore job, it is just a matter of removing or commenting all of those
steps.

At some point, perhaps after some feedback and additional modifications I
will
post it to my website, but for now, I just wanted to get this out there to
you.

For example, I am thinking that I might want to add the ability to specify
the
types of jobs to run on the command line, a different client to restore to,
etc.

I have been running a version of this for a couple years now, and have just
made a couple minor modifications today, so I think it is pretty stable.

All comments and suggestions welcome!


Best regards,

Bill


-- 
Bill Arlofski
http://www.revpol.com/bacula
-- Not responsible for anything below this line --
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to