stockholm/lass/2configs/backups.nix

136 lines
5.0 KiB
Nix
Raw Normal View History

2016-04-11 14:51:49 +00:00
{ config, lib, ... }:
2016-10-20 18:54:38 +00:00
with import <stockholm/lib>;
2016-04-11 14:51:49 +00:00
{
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"; };
};
}) {
2016-04-13 14:30:17 +00:00
dishfire-http-prism = {
2016-04-11 14:51:49 +00:00
method = "pull";
2016-04-13 14:30:17 +00:00
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-http"; };
2016-04-11 14:51:49 +00:00
startAt = "03:00";
};
2016-04-13 14:30:17 +00:00
dishfire-http-mors = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/dishfire-http"; };
startAt = "03:05";
};
2016-09-08 19:04:18 +00:00
dishfire-http-shodan = {
2016-04-13 14:30:17 +00:00
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-http"; };
2016-04-13 14:30:17 +00:00
startAt = "03:10";
};
dishfire-sql-prism = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-sql"; };
startAt = "03:15";
};
dishfire-sql-mors = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/dishfire-sql"; };
startAt = "03:20";
};
2016-09-08 19:04:18 +00:00
dishfire-sql-shodan = {
2016-04-13 14:30:17 +00:00
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-sql"; };
2016-04-13 14:30:17 +00:00
startAt = "03:25";
};
2016-04-25 15:04:09 +00:00
prism-bitlbee-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/prism-bitlbee"; };
startAt = "03:25";
};
2016-09-08 19:04:18 +00:00
prism-bitlbee-shodan = {
2016-04-25 15:04:09 +00:00
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-bitlbee"; };
2016-04-25 15:04:09 +00:00
startAt = "03:25";
};
2016-04-11 14:51:49 +00:00
prism-chat-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/prism-chat"; };
2016-04-13 14:30:17 +00:00
startAt = "03:30";
2016-04-11 14:51:49 +00:00
};
2016-09-08 19:04:18 +00:00
prism-chat-shodan = {
2016-04-13 14:30:17 +00:00
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-chat"; };
2016-04-13 14:30:17 +00:00
startAt = "03:35";
2016-04-11 14:51:49 +00:00
};
2016-04-13 14:30:17 +00:00
prism-sql-mors = {
2016-04-11 14:51:49 +00:00
method = "pull";
2016-04-13 14:30:17 +00:00
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/prism-sql_dumps"; };
startAt = "03:40";
2016-04-11 14:51:49 +00:00
};
2016-09-08 19:04:18 +00:00
prism-sql-shodan = {
2016-04-11 14:51:49 +00:00
method = "pull";
2016-04-13 14:30:17 +00:00
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-sql_dumps"; };
2016-04-13 14:30:17 +00:00
startAt = "03:45";
2016-04-11 14:51:49 +00:00
};
prism-http-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/prism-http"; };
2016-04-13 14:30:17 +00:00
startAt = "03:50";
2016-04-11 14:51:49 +00:00
};
2016-09-08 19:04:18 +00:00
prism-http-shodan = {
2016-04-11 14:51:49 +00:00
method = "pull";
2016-04-13 14:30:17 +00:00
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-http"; };
2016-04-13 14:30:17 +00:00
startAt = "03:55";
2016-04-11 14:51:49 +00:00
};
2016-09-08 19:04:18 +00:00
shodan-home-mors = {
2016-04-11 14:51:49 +00:00
method = "pull";
2016-09-08 19:04:18 +00:00
src = { host = config.krebs.hosts.shodan; path = "/home"; };
dst = { host = config.krebs.hosts.mors; path = "/bku/shodan-home"; };
2016-04-13 14:30:17 +00:00
startAt = "04:00";
};
2016-09-08 19:04:18 +00:00
mors-home-shodan = {
2016-04-13 14:30:17 +00:00
method = "push";
src = { host = config.krebs.hosts.mors; path = "/home"; };
2016-09-08 19:04:18 +00:00
dst = { host = config.krebs.hosts.shodan; path = "/bku/mors-home"; };
2016-04-11 14:51:49 +00:00
startAt = "05:00";
};
2016-04-27 10:47:53 +00:00
dishfire-http-helios = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
dst = { host = config.krebs.hosts.helios; path = "/bku/dishfire-http"; };
startAt = "12:00";
};
dishfire-sql-helios = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
dst = { host = config.krebs.hosts.helios; path = "/bku/dishfire-sql"; };
startAt = "12:15";
};
prism-sql-helios = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
dst = { host = config.krebs.hosts.helios; path = "/bku/prism-sql_dumps"; };
startAt = "12:30";
};
prism-http-helios = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
dst = { host = config.krebs.hosts.helios; path = "/bku/prism-http"; };
startAt = "12:45";
};
2016-04-11 14:51:49 +00:00
};
}