summaryrefslogtreecommitdiff
path: root/joeyconfig.hs
diff options
context:
space:
mode:
authorJoey Hess2016-09-16 12:18:29 -0400
committerJoey Hess2016-09-16 12:18:29 -0400
commit2f7f02dec0beaa2e13cafbe74e1c2918a2de45fb (patch)
tree4ca74de54fc27e9cab6ada162775a3fe56aab116 /joeyconfig.hs
parent29d0304b9f4418bf57961de6bc8d2dad20ba170c (diff)
propellor spin
Diffstat (limited to 'joeyconfig.hs')
-rw-r--r--joeyconfig.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/joeyconfig.hs b/joeyconfig.hs
index 0ee84b4e..15a00f7c 100644
--- a/joeyconfig.hs
+++ b/joeyconfig.hs
@@ -499,10 +499,11 @@ keysafe = host "keysafe.joeyh.name" $ props
-- Note that this is not an incremental backup; it uploads the
-- whole content every time. So, only run weekly.
& Cron.niceJob "keysafe backup" Cron.Weekly (User "root") "/" backupcmd
+ `requires` Apt.installed ["rsync"]
where
datadir = "/var/lib/keysafe"
backupdir = "/var/backups/keysafe"
- rsyncnetbackup = "sftp://2318@usw-s002.rsync.net/~/keysafe"
+ rsyncnetbackup = "2318@usw-s002.rsync.net:keysafe"
backupcmd = unwords
[ "keysafe --store-directory", datadir, "--backup-server", backupdir
, "&& rsync -a --delete --max-delete 3 ", backupdir , rsyncnetbackup