From e6e3c11dba238e80af4cef968960c3667f6718e1 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 7 Oct 2009 12:52:04 +0000 Subject: [PATCH] * moved example to example attribute, changed description of sitecopy backup module svn path=/nixos/trunk/; revision=17693 --- modules/services/backup/sitecopy-backup.nix | 22 ++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/modules/services/backup/sitecopy-backup.nix b/modules/services/backup/sitecopy-backup.nix index 292c7b11311a..527a5e5b69dc 100644 --- a/modules/services/backup/sitecopy-backup.nix +++ b/modules/services/backup/sitecopy-backup.nix @@ -36,20 +36,24 @@ in }; backups = mkOption { + example = [ + { name = "test"; + local = "/tmp/backup"; + remote = "/staff-groups/ewi/st/strategoxt/backup/test"; + server = "webdata.tudelft.nl"; + protocol = "webdav"; + https = true ; + } + ]; default = []; description = '' List of attributesets describing the backups. - E.g. { name = "test"; - local = "/tmp/backup"; - remote = "/staff-groups/ewi/st/strategoxt/backup/test"; - server = "webdata.tudelft.nl"; - protocol = "webdav"; - https = true ; - }; - Username/password are extracted from ${stateDir}/sitecopy.secrets at activation + + Username/password are extracted from ${stateDir}/sitecopy.secrets at activation time. The secrets file lines should have the following structure: + server username password - + ''; };