backup for nominatim
[chef.git] / cookbooks / nominatim / recipes / default.rb
index 845bb7700bcf2383c674e8126438440d3531bf12..cd12156d87ad3c20f88e9d650e9fca1f297f7e4f 100644 (file)
@@ -243,3 +243,19 @@ end
 munin_plugin "nominatim_throttled_ips" do
   target "#{source_directory}/munin/nominatim_throttled_ips"
 end
+
+template "/usr/local/bin/backup-nominatim" do
+  source "backup-nominatim.erb"
+  owner "root"
+  group "root"
+  mode 0755
+end
+
+cron "nominatim_backup" do
+  hour "3"
+  minute "00"
+  day "1"
+  command "/usr/local/bin/backup-nominatim"
+  user "nominatim"
+  mailto email_errors
+end