template "opengeodata.erb"
directory "/srv/opengeodata.org"
end
+
+template "/etc/cron.daily/blog-backup" do
+ source "backup.cron.erb"
+ owner "root"
+ group "root"
+ mode 0750
+ variables :passwords => passwords
+end
B=osm-blog-$D.tar.gz
mkdir $T/osm-blog-$D
-mysqldump --user=osm-blog-user --password=<%= @passwords["osmf-blog-user"] %> --opt osm-blog > $T/osm-blog-$D/osm-blog.sql
+mysqldump --user=osm-blog-user --password=<%= @passwords["osm-blog-user"] %> --opt osm-blog > $T/osm-blog-$D/osm-blog.sql
ln -s /srv/blog.openstreetmap.org $T/osm-blog-$D/www
export GZIP="--rsyncable -9"
site "blog.osmfoundation.org"
source "plugins/sitepress-multilingual-cms"
end
-
-template "/etc/cron.daily/blog-backup" do
- source "backup.cron.erb"
- owner "root"
- group "root"
- mode 0750
- variables :passwords => passwords
-end