Project

General

Profile

Actions

Task #1929

open

better guard backups against running into each other

Added by Christian Lohmaier over 8 years ago. Updated over 8 years ago.

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

0%

Tags:
Salt

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.

Actions #1

Updated by Alexander Werner over 8 years ago

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

Actions

Also available in: Atom PDF