From 74a02add291f13b27fb6a1813b870a0730e1142b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 6 Feb 2016 20:04:00 -0400 Subject: Obnam: To cause old generations to be forgotten, keepParam can be passed to a backup property; this causes obnam forget to be run. --- config-joey.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config-joey.hs') diff --git a/config-joey.hs b/config-joey.hs index 5e263de6..75333d78 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -261,19 +261,20 @@ kite = standardSystemUnhardened "kite.kitenet.net" Testing "amd64" -- Since ssh password authentication is allowed: & Fail2Ban.installed & Obnam.backupEncrypted "/" (Cron.Times "33 1 * * *") - [ "--repository=sftp://joey@eubackup.kitenet.net/~/lib/backup/kite.obnam" + [ "--repository=sftp://2318@usw-s002.rsync.net/~/kite.obnam" , "--client-name=kitenet.net" , "--exclude=/var/cache" , "--exclude=/var/tmp" , "--exclude=/home/joey/lib" , "--exclude=.*/tmp/" , "--one-file-system" + , Obnam.keepParam [Obnam.KeepDays 7, Obnam.KeepWeeks 4, Obnam.KeepMonths 6] ] Obnam.OnlyClient (Gpg.GpgKeyId "98147487") `requires` Ssh.userKeys (User "root") (Context "kite.kitenet.net") [ (SshRsa, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5Gza2sNqSKfNtUN4dN/Z3rlqw18nijmXFx6df2GtBoZbkIak73uQfDuZLP+AXlyfHocwdkdHEf/zrxgXS4EokQMGLZhJ37Pr3edrEn/NEnqroiffw7kyd7EqaziA6UOezcLTjWGv+Zqg9JhitYs4WWTpNzrPH3yQf1V9FunZnkzb4gJGndts13wGmPEwSuf+QHbgQvjMOMCJwWSNcJGdhDR66hFlxfG26xx50uIczXYAbgLfHp5W6WuR/lcaS9J6i7HAPwcsPDA04XDinrcpl29QwsMW1HyGS/4FSCgrDqNZ2jzP49Bka78iCLRqfl1efyYas/Zo1jQ0x+pxq2RMr root@kite") ] - `requires` Ssh.knownHost hosts "eubackup.kitenet.net" (User "root") + `requires` Ssh.knownHost hosts "usw-s002.rsync.net" (User "root") & Apt.serviceInstalledRunning "ntp" & "/etc/timezone" `File.hasContent` ["US/Eastern"] -- cgit v1.2.3