diff options
author | lassulus <lass@aidsballs.de> | 2016-10-19 12:37:05 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-10-19 12:37:05 +0200 |
commit | 7aa9fb7eff3a4356097b46bf531969027a0935a0 (patch) | |
tree | faa02f6d1f5cefc5fdf55cdffe5c4bddea4be616 /makefu/2configs/backup.nix | |
parent | cbd83bb95fb3b4443523cc277b662ce4dd9d5925 (diff) | |
parent | 7ebecdc99cd9a1ad9ec7c047348e6ea6faf566c5 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/backup.nix')
-rw-r--r-- | makefu/2configs/backup.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/makefu/2configs/backup.nix b/makefu/2configs/backup.nix index 6f79ed4f4..57fd7a64d 100644 --- a/makefu/2configs/backup.nix +++ b/makefu/2configs/backup.nix @@ -1,6 +1,10 @@ { config, lib, ... }: with config.krebs.lib; let + # preparation: + # mkdir -p defaultBackupDir/host.name/src + # as root on omo: + # ssh-copy-id root@src startAt = "0,6,12,18:00"; defaultBackupServer = config.krebs.hosts.omo; defaultBackupDir = "/home/backup"; @@ -12,7 +16,7 @@ let }; dst = { host = defaultBackupServer; - path = defaultBackupDir + src; + path = "${defaultBackupDir}/${host.name}${src}"; }; startAt = "0,6,12,18:00"; snapshots = { @@ -25,6 +29,6 @@ let }; in { krebs.backup.plans = { - wry-to-omo_var-www = defaultPull wry "/var/www"; + wry-to-omo_var-www = defaultPull config.krebs.hosts.wry "/"; }; } |