BackupPC-users

Re: [BackupPC-users] Feature Requests and such?

2009-08-16 23:20:35
Subject: Re: [BackupPC-users] Feature Requests and such?
From: Adam Goryachev <mailinglists AT websitemanagers.com DOT au>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 17 Aug 2009 13:15:59 +1000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Clint Alexander wrote:
> Hi BackupPC List Members (and owners)..
>  
> One thing that has frustrated the heck out of me is the lack of finding
> 1) I want to see *when* a backup is going to run. I've been making
> changes to the overall schedule of the system, but it seems like all the
> backups run in the last hour of the non-blackout times. I have 4
> particular servers (SQL Cluster Nodes) that need to be backed up within
> the same hour. I setup the blackout of these particular servers FROM 4am
> TO 3am in hopes to get them done between 3-4am. But only one of them was
> fired within that hour, the rest 2 hours later. So -- we should be able
> to see what our current settings will do and when it will do it. I'm
> sure there is a configuration that would work for this that I can't
> figure out -- but it doesn't make the feature any less important :)

I may be out of line here, but I think you might have a config similar
to this:

$Conf{FullPeriod} = 6.97;
$Conf{IncrPeriod} = 0.97;
$Conf{BlackoutPeriods} = [
  {
    'hourBegin' => '4'
    'hourEnd' => '3',
    'weekDays' => [
      '1',
      '2',
      '3',
      '4',
      '5',
      '6',
      '7'
    ],
  }
];

Now, if your backups are done one at a time, and each takes 20 minutes
(probably they take longer?), then your first backup will happen at 3am,
the second will happen at 3:20, third at 3:40 and fourth at 4am,
finishing at 4:20am.

This will repeat each day...
However, possibly when backuppc wakes up at 3am, it doesn't queue any of
the backups because you are still inside the blackout time (3am). You
might try modifying the hourend to 2.99 or similar.

Also, if your backups take 90 minutes each, then you get this:
Backup 1 at 3am
Backup 2 at 4:30
Backup 3 at 6
Backup 4 at 7:30
All finished at 9am

Now, the next day, the first backup won't start until 3am + 90min (4:30)
+ 0.97 * 24 = 3:47am or actually the first wakeup period after that
which is probably 4am.

Even increasing the number of concurrent backups won't solve this
"slipping".

What I tend to do is set:
IncrPeriod = 0.8 (or even 0.6)
FullPeriod = 6.8 (or 6.6)
As long as the blackout period covers more than 12 hours per day, you
should get what you want (a backup starting as close as possible to the
beginning of your non blackout window, and a backup every non-blackout
window (daily).

Sorry, that is all a bit longer than intended, but hopefully it is
helpful to you or someone else. If I'm wrong in my interpretation of how
things work in backuppc, feel free to educate me, it just might be
helpful :)

Regards,
Adam

- --
Adam Goryachev
Website Managers
www.websitemanagers.com.au
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqIy2sACgkQGyoxogrTyiVIIACfRFbh9xcpTHZl4QfrOLXrrHAE
qw4AoMT0kbI9yqBc9j9yhB+IjQcuhIMN
=LK0u
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/