m 2 backup: working config
This commit is contained in:
parent
f82013c2c6
commit
cd506f30fa
|
@ -1,6 +1,10 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
let
|
let
|
||||||
|
# preparation:
|
||||||
|
# mkdir -p defaultBackupDir/host.name/src
|
||||||
|
# as root on omo:
|
||||||
|
# ssh-copy-id root@src
|
||||||
startAt = "0,6,12,18:00";
|
startAt = "0,6,12,18:00";
|
||||||
defaultBackupServer = config.krebs.hosts.omo;
|
defaultBackupServer = config.krebs.hosts.omo;
|
||||||
defaultBackupDir = "/home/backup";
|
defaultBackupDir = "/home/backup";
|
||||||
|
@ -12,7 +16,7 @@ let
|
||||||
};
|
};
|
||||||
dst = {
|
dst = {
|
||||||
host = defaultBackupServer;
|
host = defaultBackupServer;
|
||||||
path = defaultBackupDir + src;
|
path = "${defaultBackupDir}/${host.name}${src}";
|
||||||
};
|
};
|
||||||
startAt = "0,6,12,18:00";
|
startAt = "0,6,12,18:00";
|
||||||
snapshots = {
|
snapshots = {
|
||||||
|
@ -25,6 +29,6 @@ let
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
krebs.backup.plans = {
|
krebs.backup.plans = {
|
||||||
wry-to-omo_var-www = defaultPull wry "/var/www";
|
wry-to-omo_var-www = defaultPull config.krebs.hosts.wry "/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue