l backups: add icarus to plans
This commit is contained in:
parent
d132500da6
commit
889dc688a6
@ -2,6 +2,8 @@
|
|||||||
with import <stockholm/lib>;
|
with import <stockholm/lib>;
|
||||||
{
|
{
|
||||||
|
|
||||||
|
# TODO add timerConfig to krebs.backup and randomize startup
|
||||||
|
# TODO define plans more abstract
|
||||||
krebs.backup.plans = {
|
krebs.backup.plans = {
|
||||||
} // mapAttrs (_: recursiveUpdate {
|
} // mapAttrs (_: recursiveUpdate {
|
||||||
snapshots = {
|
snapshots = {
|
||||||
@ -17,6 +19,12 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-http"; };
|
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-http"; };
|
||||||
startAt = "03:00";
|
startAt = "03:00";
|
||||||
};
|
};
|
||||||
|
dishfire-http-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/dishfire-http"; };
|
||||||
|
startAt = "03:10";
|
||||||
|
};
|
||||||
dishfire-http-mors = {
|
dishfire-http-mors = {
|
||||||
method = "pull";
|
method = "pull";
|
||||||
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
|
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
|
||||||
@ -35,6 +43,12 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-sql"; };
|
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-sql"; };
|
||||||
startAt = "03:15";
|
startAt = "03:15";
|
||||||
};
|
};
|
||||||
|
dishfire-sql-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/dishfire-sql"; };
|
||||||
|
startAt = "03:25";
|
||||||
|
};
|
||||||
dishfire-sql-mors = {
|
dishfire-sql-mors = {
|
||||||
method = "pull";
|
method = "pull";
|
||||||
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
|
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
|
||||||
@ -47,6 +61,12 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-sql"; };
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-sql"; };
|
||||||
startAt = "03:25";
|
startAt = "03:25";
|
||||||
};
|
};
|
||||||
|
prism-bitlbee-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-bitlbee"; };
|
||||||
|
startAt = "03:25";
|
||||||
|
};
|
||||||
prism-bitlbee-mors = {
|
prism-bitlbee-mors = {
|
||||||
method = "pull";
|
method = "pull";
|
||||||
src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
|
src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
|
||||||
@ -59,6 +79,12 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-bitlbee"; };
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-bitlbee"; };
|
||||||
startAt = "03:25";
|
startAt = "03:25";
|
||||||
};
|
};
|
||||||
|
prism-chat-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-chat"; };
|
||||||
|
startAt = "03:35";
|
||||||
|
};
|
||||||
prism-chat-mors = {
|
prism-chat-mors = {
|
||||||
method = "pull";
|
method = "pull";
|
||||||
src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
|
src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
|
||||||
@ -71,6 +97,12 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-chat"; };
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-chat"; };
|
||||||
startAt = "03:35";
|
startAt = "03:35";
|
||||||
};
|
};
|
||||||
|
prism-sql-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-sql_dumps"; };
|
||||||
|
startAt = "03:45";
|
||||||
|
};
|
||||||
prism-sql-mors = {
|
prism-sql-mors = {
|
||||||
method = "pull";
|
method = "pull";
|
||||||
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
|
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
|
||||||
@ -83,6 +115,12 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-sql_dumps"; };
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-sql_dumps"; };
|
||||||
startAt = "03:45";
|
startAt = "03:45";
|
||||||
};
|
};
|
||||||
|
prism-http-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-http"; };
|
||||||
|
startAt = "03:55";
|
||||||
|
};
|
||||||
prism-http-mors = {
|
prism-http-mors = {
|
||||||
method = "pull";
|
method = "pull";
|
||||||
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
|
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
|
||||||
@ -95,11 +133,23 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-http"; };
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-http"; };
|
||||||
startAt = "03:55";
|
startAt = "03:55";
|
||||||
};
|
};
|
||||||
shodan-home-mors = {
|
icarus-home-mors = {
|
||||||
method = "pull";
|
method = "push";
|
||||||
src = { host = config.krebs.hosts.shodan; path = "/home"; };
|
src = { host = config.krebs.hosts.icarus; path = "/home"; };
|
||||||
dst = { host = config.krebs.hosts.mors; path = "/bku/shodan-home"; };
|
dst = { host = config.krebs.hosts.mors; path = "/bku/icarus-home"; };
|
||||||
startAt = "04:00";
|
startAt = "05:00";
|
||||||
|
};
|
||||||
|
icarus-home-shodan = {
|
||||||
|
method = "push";
|
||||||
|
src = { host = config.krebs.hosts.icarus; path = "/home"; };
|
||||||
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/icarus-home"; };
|
||||||
|
startAt = "05:00";
|
||||||
|
};
|
||||||
|
mors-home-icarus = {
|
||||||
|
method = "push";
|
||||||
|
src = { host = config.krebs.hosts.mors; path = "/home"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/mors-home"; };
|
||||||
|
startAt = "05:00";
|
||||||
};
|
};
|
||||||
mors-home-shodan = {
|
mors-home-shodan = {
|
||||||
method = "push";
|
method = "push";
|
||||||
@ -107,5 +157,17 @@ with import <stockholm/lib>;
|
|||||||
dst = { host = config.krebs.hosts.shodan; path = "/bku/mors-home"; };
|
dst = { host = config.krebs.hosts.shodan; path = "/bku/mors-home"; };
|
||||||
startAt = "05:00";
|
startAt = "05:00";
|
||||||
};
|
};
|
||||||
|
shodan-home-icarus = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.shodan; path = "/home"; };
|
||||||
|
dst = { host = config.krebs.hosts.icarus; path = "/bku/shodan-home"; };
|
||||||
|
startAt = "04:00";
|
||||||
|
};
|
||||||
|
shodan-home-mors = {
|
||||||
|
method = "pull";
|
||||||
|
src = { host = config.krebs.hosts.shodan; path = "/home"; };
|
||||||
|
dst = { host = config.krebs.hosts.mors; path = "/bku/shodan-home"; };
|
||||||
|
startAt = "04:00";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user