2022-12-09 00:31:56 +00:00
|
|
|
with import ./lib;
|
|
|
|
{ config, pkgs, ... }: {
|
2016-02-06 17:54:01 +00:00
|
|
|
krebs.backup.plans = {
|
2016-02-18 01:55:46 +00:00
|
|
|
} // mapAttrs (_: recursiveUpdate {
|
|
|
|
snapshots = {
|
|
|
|
daily = { format = "%Y-%m-%d"; retain = 7; };
|
|
|
|
weekly = { format = "%YW%W"; retain = 4; };
|
|
|
|
monthly = { format = "%Y-%m"; retain = 12; };
|
|
|
|
yearly = { format = "%Y"; };
|
|
|
|
};
|
|
|
|
}) {
|
2022-01-05 00:40:14 +00:00
|
|
|
bu-home-wu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.bu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.wu; path = "/bku/bu-home"; };
|
|
|
|
startAt = "05:15";
|
|
|
|
};
|
|
|
|
bu-home-xu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.bu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/bu-home"; };
|
|
|
|
startAt = "05:20";
|
|
|
|
};
|
|
|
|
bu-home-zu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.bu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.zu; path = "/bku/bu-home"; };
|
|
|
|
startAt = "05:25";
|
|
|
|
};
|
2016-02-17 16:30:39 +00:00
|
|
|
nomic-home-xu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.nomic; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/nomic-home"; };
|
|
|
|
startAt = "05:00";
|
|
|
|
};
|
2016-07-07 23:23:22 +00:00
|
|
|
nomic-home-zu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.nomic; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.zu; path = "/bku/nomic-home"; };
|
|
|
|
startAt = "04:20";
|
|
|
|
};
|
2017-11-26 15:10:06 +00:00
|
|
|
nomic-pull-querel-home = {
|
|
|
|
method = "pull";
|
|
|
|
src = { host = config.krebs.hosts.querel; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.nomic; path = "/fs/ponyhof/bku/querel-home"; };
|
2018-10-07 08:18:07 +00:00
|
|
|
startAt = "22:00";
|
2017-11-26 15:10:06 +00:00
|
|
|
};
|
2016-01-05 21:35:05 +00:00
|
|
|
wu-home-xu = {
|
2015-12-27 23:02:58 +00:00
|
|
|
method = "push";
|
2016-01-05 21:35:05 +00:00
|
|
|
src = { host = config.krebs.hosts.wu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/wu-home"; };
|
|
|
|
startAt = "05:00";
|
2015-12-27 23:02:58 +00:00
|
|
|
};
|
2016-07-07 23:23:22 +00:00
|
|
|
wu-home-zu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.wu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.zu; path = "/bku/wu-home"; };
|
|
|
|
startAt = "05:20";
|
|
|
|
};
|
2022-01-05 00:40:14 +00:00
|
|
|
xu-home-bu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.bu; path = "/bku/xu-home"; };
|
|
|
|
startAt = "04:50";
|
|
|
|
};
|
2017-07-12 21:46:02 +00:00
|
|
|
xu-home-nomic = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.nomic; path = "/fs/cis3hG/bku/xu-home"; };
|
|
|
|
startAt = "05:20";
|
|
|
|
};
|
2016-02-07 23:25:35 +00:00
|
|
|
xu-home-wu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.wu; path = "/bku/xu-home"; };
|
|
|
|
startAt = "06:00";
|
2016-02-18 01:55:46 +00:00
|
|
|
};
|
2016-07-07 23:23:22 +00:00
|
|
|
xu-home-zu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.zu; path = "/bku/xu-home"; };
|
|
|
|
startAt = "06:20";
|
|
|
|
};
|
2016-11-24 21:38:29 +00:00
|
|
|
xu-pull-ni-ejabberd = {
|
|
|
|
method = "pull";
|
2018-12-29 11:58:45 +00:00
|
|
|
src = { host = config.krebs.hosts.ni; path = "/var/lib/ejabberd"; };
|
2016-11-24 21:38:29 +00:00
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/ni-ejabberd"; };
|
|
|
|
startAt = "07:00";
|
|
|
|
};
|
|
|
|
xu-pull-ni-home = {
|
|
|
|
method = "pull";
|
|
|
|
src = { host = config.krebs.hosts.ni; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/ni-home"; };
|
|
|
|
startAt = "07:00";
|
|
|
|
};
|
2016-07-07 23:23:22 +00:00
|
|
|
zu-home-xu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.zu; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/zu-home"; };
|
|
|
|
startAt = "05:00";
|
|
|
|
};
|
2016-11-24 21:38:29 +00:00
|
|
|
zu-pull-ni-ejabberd = {
|
|
|
|
method = "pull";
|
2018-12-29 11:58:45 +00:00
|
|
|
src = { host = config.krebs.hosts.ni; path = "/var/lib/ejabberd"; };
|
2016-11-24 21:38:29 +00:00
|
|
|
dst = { host = config.krebs.hosts.zu; path = "/bku/ni-ejabberd"; };
|
|
|
|
startAt = "06:00";
|
|
|
|
};
|
|
|
|
zu-pull-ni-home = {
|
|
|
|
method = "pull";
|
|
|
|
src = { host = config.krebs.hosts.ni; path = "/home"; };
|
|
|
|
dst = { host = config.krebs.hosts.zu; path = "/bku/ni-home"; };
|
|
|
|
startAt = "06:30";
|
|
|
|
};
|
2016-02-13 16:56:59 +00:00
|
|
|
} // mapAttrs (_: recursiveUpdate {
|
|
|
|
snapshots = {
|
|
|
|
minutely = { format = "%Y-%m-%dT%H:%M"; retain = 3; };
|
|
|
|
hourly = { format = "%Y-%m-%dT%H"; retain = 3; };
|
|
|
|
daily = { format = "%Y-%m-%d"; retain = 3; };
|
|
|
|
};
|
|
|
|
startAt = null;
|
|
|
|
}) {
|
|
|
|
xu-test-push-xu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/tmp/xu-bku-test-data"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/xu-test-push"; };
|
|
|
|
};
|
|
|
|
xu-test-pull-xu = {
|
|
|
|
method = "pull";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/tmp/xu-bku-test-data"; };
|
|
|
|
dst = { host = config.krebs.hosts.xu; path = "/bku/xu-test-pull"; };
|
|
|
|
};
|
|
|
|
xu-test-push-wu = {
|
|
|
|
method = "push";
|
|
|
|
src = { host = config.krebs.hosts.xu; path = "/tmp/xu-bku-test-data"; };
|
|
|
|
dst = { host = config.krebs.hosts.wu; path = "/bku/xu-test-push"; };
|
|
|
|
};
|
2015-12-27 23:02:58 +00:00
|
|
|
};
|
2015-12-28 18:43:31 +00:00
|
|
|
}
|