]> git.openstreetmap.org Git - chef.git/commitdiff
wiki: Add wikibase dump
authorGrant Slater <github@firefishy.com>
Thu, 17 Nov 2022 22:39:04 +0000 (22:39 +0000)
committerGrant Slater <github@firefishy.com>
Thu, 17 Nov 2022 22:39:18 +0000 (22:39 +0000)
cookbooks/wiki/recipes/default.rb

index ef0d16b8b67d79330da40cea7e23d919595ca55b..a036a07be1d5875f320550fc0275cf7473afd8f6 100644 (file)
@@ -140,3 +140,10 @@ cron_d "wiki-dump" do
   user "wiki"
   command "cd /srv/wiki.openstreetmap.org && php w/maintenance/dumpBackup.php --full --quiet --output=gzip:dump/dump.xml.gz"
 end
+
+cron_d "wiki-rdf-dump" do
+  minute "0"
+  hour "4"
+  user "wiki"
+  command "cd /srv/wiki.openstreetmap.org && php w/extensions/Wikibase/repo/maintenance/dumpRdf.php --wiki wiki --format ttl --flavor full-dump --entity-type item --entity-type property --no-cache --output /tmp/wikibase-rdf.ttl && gzip -9 /tmp/wikibase-rdf.ttl && mv /tmp/wikibase-rdf.ttl.gz /srv/wiki.openstreetmap.org/dump/wikibase-rdf.ttl.gz"
+end