tv: init backup plans xu-pull-cd-{ejabberd,home}
This commit is contained in:
parent
1de8d5c44d
commit
db6342f58c
|
@ -2,41 +2,43 @@
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
{
|
{
|
||||||
krebs.backup.plans = {
|
krebs.backup.plans = {
|
||||||
|
} // 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"; };
|
||||||
|
};
|
||||||
|
}) {
|
||||||
nomic-home-xu = {
|
nomic-home-xu = {
|
||||||
method = "push";
|
method = "push";
|
||||||
src = { host = config.krebs.hosts.nomic; path = "/home"; };
|
src = { host = config.krebs.hosts.nomic; path = "/home"; };
|
||||||
dst = { host = config.krebs.hosts.xu; path = "/bku/nomic-home"; };
|
dst = { host = config.krebs.hosts.xu; path = "/bku/nomic-home"; };
|
||||||
startAt = "05:00";
|
startAt = "05:00";
|
||||||
snapshots = {
|
|
||||||
daily = { format = "%Y-%m-%d"; retain = 7; };
|
|
||||||
weekly = { format = "%YW%W"; retain = 4; };
|
|
||||||
monthly = { format = "%Y-%m"; retain = 12; };
|
|
||||||
yearly = { format = "%Y"; };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
wu-home-xu = {
|
wu-home-xu = {
|
||||||
method = "push";
|
method = "push";
|
||||||
src = { host = config.krebs.hosts.wu; path = "/home"; };
|
src = { host = config.krebs.hosts.wu; path = "/home"; };
|
||||||
dst = { host = config.krebs.hosts.xu; path = "/bku/wu-home"; };
|
dst = { host = config.krebs.hosts.xu; path = "/bku/wu-home"; };
|
||||||
startAt = "05:00";
|
startAt = "05:00";
|
||||||
snapshots = {
|
|
||||||
daily = { format = "%Y-%m-%d"; retain = 7; };
|
|
||||||
weekly = { format = "%YW%W"; retain = 4; };
|
|
||||||
monthly = { format = "%Y-%m"; retain = 12; };
|
|
||||||
yearly = { format = "%Y"; };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
xu-home-wu = {
|
xu-home-wu = {
|
||||||
method = "push";
|
method = "push";
|
||||||
src = { host = config.krebs.hosts.xu; path = "/home"; };
|
src = { host = config.krebs.hosts.xu; path = "/home"; };
|
||||||
dst = { host = config.krebs.hosts.wu; path = "/bku/xu-home"; };
|
dst = { host = config.krebs.hosts.wu; path = "/bku/xu-home"; };
|
||||||
startAt = "06:00";
|
startAt = "06:00";
|
||||||
snapshots = {
|
};
|
||||||
daily = { format = "%Y-%m-%d"; retain = 7; };
|
xu-pull-cd-ejabberd = {
|
||||||
weekly = { format = "%YW%W"; retain = 4; };
|
method = "pull";
|
||||||
monthly = { format = "%Y-%m"; retain = 12; };
|
src = { host = config.krebs.hosts.cd; path = "/var/ejabberd"; };
|
||||||
yearly = { format = "%Y"; };
|
dst = { host = config.krebs.hosts.xu; path = "/bku/cd-ejabberd"; };
|
||||||
};
|
startAt = "07:00";
|
||||||
|
};
|
||||||
|
xu-pull-cd-home = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.cd; path = "/home"; };
|
||||||
|
dst = { host = config.krebs.hosts.xu; path = "/bku/cd-home"; };
|
||||||
|
startAt = "07:00";
|
||||||
};
|
};
|
||||||
} // mapAttrs (_: recursiveUpdate {
|
} // mapAttrs (_: recursiveUpdate {
|
||||||
snapshots = {
|
snapshots = {
|
||||||
|
|
Loading…
Reference in a new issue