Project

General

Profile

Task #1929

better guard backups against running into each other

Added by Christian Lohmaier over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Backups
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Tags:
Salt
URL:

Description

randomly spreading the backups across the day is only measure currently.

however that doesn't take backup size/time it takes to backup into account, so load/bandwidth usage is not distributed evenly and especially for new backups jobs can run into each other (mainly bilbo & jenkins affected I guess). this can be guarded against withlock

maybe a better approach is to have a single cronjob trigger for all backups, that is then in turn run in parallel with x number of jobs in a matter like

find /etc/rsnapshot/*.conf -print0 | xargs -0r -P 12 -I CONFIG /bin/sh -c '/usr/bin/rsnapshot -cCONFIG sync ; /usr/bin/rsnapshot -cCONFIG daily'

but depending on the headroom this also might need the withlock / some means to prevent running into each other.

History

#1 Updated by Alexander Werner over 1 year ago

Backup will not run twice at the same time, rsnapshot checks for existance of pid file and pid.

Also available in: Atom PDF