Bacula-users

Re: [Bacula-users] Howto recover from a job being rerun around a summer time change

2009-04-05 05:12:35
Subject: Re: [Bacula-users] Howto recover from a job being rerun around a summer time change
From: Kevin Keane <subscription AT kkeane DOT com>
Date: Sun, 5 Apr 2009 01:21:15 -0700
Mark V wrote:
> Hi Group,
>
> Unfortunately I seem to have scheduled my full backup for 2:05am which
> is around the time that our clocks go back, 2:00am - I use openSUSE
> 11.0 and it seems this time shift happened, but only after the backup
> started.
>
> bacula version is 2.4.4
>
> The result does not seem to be disastrous - the backup went ahead.
> The problem is the same backup job tried to run again and is now
> hanging with bacula-tray-monitor showing:
>     Device is BLOCKED waiting to create a volume for:
>        Pool:        Full-Pool
>        Media type:  File
>
> In the log I don't see error messages.
> But in bat gui I did see an error message in the console showing that
> the job finished at 2:51am and then tried to start again at 2:05am,
> and of course complained that the job file existed - this job is set
> to have only one backup job per file.
>
> Two questions:
> Q1) Am I going mad or is it possible for bat to show an error that
> does not show in the bacula log file?
>   
I don't know
> Q2) What is the best way to remedy this situation?
>   
Cancel the blocked job. Since it's blocked, it hasn't done anything.
> Q3) Am I correct in assuming that the only way to handle (summer) time
> changes is to set your backup times far enough away from the change
> over time?
>   
I can see several options:
- Don't schedule the job between 2 AM and 3 AM. 1:59 or 3:01 AM should 
be fine since these are unique times.
- change the time zone to UTC
- create a script that somehow figures out that this is the second 
2:05AM in the same day, and then returns an error. Run this as a Run 
Before script.
- The ostrich algorithm: pretend that the problem doesn't exist, and 
simply cancel the job when it happens. It's only once a year.

I think the first two options are better. Otherwise, you run into the 
reverse issue in Fall; the backup won't run at all when switching back.

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users