Hi,

Les Mikesell wrote on 2017-12-12 09:39:41 -0600 [Re: [BackupPC-users] Host 
Priority Option]:
> On Tue, Dec 12, 2017 at 8:19 AM, Gurvinder <gurvin...@techblue.co.uk> wrote:
> >
> > I have been using BackupPc from past few months however I could not find
> > any option where I can prioritize hosts for backups from the list of hosts
> > we add. Let say i have 10 hosts added for backup, now I want specific
> > hosts to start backups earlier than other backup hosts.

"earlier" is not the same as "prioritize". You can achieve "earlier" with
different blackout windows. "Prioritize", on the other hand, is difficult
to even meaningfully define. If host A is "more important than" host B, does
that change when host A has had a successful backup every day for a whole
month and host B has never had a single one (i.e. are backups for host A
mandatory and for host B optional)? BackupPC assumes you want backups for
all your hosts and tries to "do the right thing". Put differently, what
situation are you envisioning where there is not enough capacity to backup
all hosts you are trying to backup? Maybe you need to fix the concept
(like add more backup servers, faster media, decrease backup volume, whatever)
instead of working around problems?

I do understand that there may be transient problems (like unusual amounts of
new data in your backup set) where regular backups of host A are more important
than of host B, but that sounds like "earlier", and will only fix itself
without manual intervention if it is the "more important" (i.e. "earlier")
hosts with the large amount of data (or if you let BackupPC proceed as it
is programmed to do, hopefully ;-).
Note that blackout windows might not work exactly as you expect. A running
backup will not be stopped when entering its blackout window, and the check,
I believe, is done when the backup is run, not when it is queued (queueing
happens according to the WakeupSchedule, running might happen any time
another backup finishes, subject to your MaxBackups setting, which could be
hours after queueing). In any case, an overly long backup for host B might
prevent a backup for host A from starting. I don't see any way within BackupPC
to prevent this. Again, this greatly depends on what kind of problems you
are expecting.

> I don't think there is a setting to force an order - they are just
> scheduled as the age of the previous backup hits the interval set
> between them.   You can manage it with a manual intervention, like
> starting a backup on the one(s) you want to happen first just before
> the blackout time ends.  If everything has the same schedule, these
> will continue to run first as long as everything completes in order.

Working with blackout windows and the periods, you can probably force this.
Let the blackout window for the "earlier" backup end at least one wakeup
earlier and keep the periods smaller so that it will run on the first wakeup
after the blackout even if it runs longer. Remember, it only needs to *start*
within the blackout window ...

Finally, the order, in which hosts are queued, is defined something like:
* hosts with errors before hosts without errors
* hosts with older last good backups earlier
* alphabetically on host name (presuming previous backup age identical to the
  second, which seems rather unlikely, unless there are no previous backups)

So host names might actually provide a way to start backups in the right
order on a new BackupPC installation :-) (hint: ClientNameAlias). And, of
course, to document your "priorities" and make it easy to check whether
things are backing up in the right order.

Hope that helps.

Regards,
Holger

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to