Author: rob
Date: Sat Mar 17 01:37:09 2012
New Revision: 33183
URL: https://nixos.org/websvn/nix/?rev=33183&sc=1

Log:
add sitecopy of postgresql backup

Modified:
   configurations/trunk/tud/wendy.nix

Modified: configurations/trunk/tud/wendy.nix
==============================================================================
--- configurations/trunk/tud/wendy.nix  Fri Mar 16 22:53:32 2012        (r33182)
+++ configurations/trunk/tud/wendy.nix  Sat Mar 17 01:37:09 2012        (r33183)
@@ -97,4 +97,20 @@
     UserParameter=hydra.builds,${pkgs.postgresql}/bin/psql hydra -At -c 
'select count(*) from Builds'
   '';
 
+  services.sitecopy = {
+      enable = true;
+      backups =
+        let genericBackup = { server = "webdata.tudelft.nl";
+                              protocol = "webdav";
+                              https = true ;
+                              symlinks = "ignore" ;
+                            };
+        in [
+          ( genericBackup // { name   = "postgresql";
+                               local  = 
config.services.postgresqlBackup.location;
+                               remote = 
"/staff-groups/ewi/st/strategoxt/backup/postgresql-wendy";
+                             })
+        ];
+    };
+
 }
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to