Dzahn has submitted this change and it was merged.

Change subject: Also published bzip2 compressed Wikidata TTL dumps
......................................................................


Also published bzip2 compressed Wikidata TTL dumps

As there seems to be a demand for this.

Change-Id: I6210e95ed879fe604e353eea933498b8ad8396c1
---
M modules/snapshot/files/dumpwikidatattl.sh
1 file changed, 8 insertions(+), 2 deletions(-)

Approvals:
  JanZerebecki: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/snapshot/files/dumpwikidatattl.sh 
b/modules/snapshot/files/dumpwikidatattl.sh
index d1cf85e..b15c30c 100644
--- a/modules/snapshot/files/dumpwikidatattl.sh
+++ b/modules/snapshot/files/dumpwikidatattl.sh
@@ -7,7 +7,8 @@
 . /usr/local/bin/wikidatadumps-shared.sh
 
 filename=wikidata-$today-all-BETA
-targetFile=$targetDir/$filename.ttl.gz
+targetFileGzip=$targetDir/$filename.ttl.gz
+targetFileBzip2=$targetDir/$filename.ttl.bz2
 
 i=0
 shards=4
@@ -21,11 +22,16 @@
 
 i=0
 while [ $i -lt $shards ]; do
-       cat $tempDir/wikidataTTL.$i.gz >> $targetFile
+       cat $tempDir/wikidataTTL.$i.gz >> $tempDir/wikidataTtl.gz
        rm $tempDir/wikidataTTL.$i.gz
        let i++
 done
 
+mv $tempDir/wikidataTtl.gz $targetFileGzip
+
+gzip -dc $targetFileGzip | pbzip2 -p3 -c > $tempDir/wikidataTtl.bz2
+mv $tempDir/wikidataTtl.bz2 $targetFileBzip2
+
 pruneOldDirectories
 pruneOldLogs
 runDcat

-- 
To view, visit https://gerrit.wikimedia.org/r/249981
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6210e95ed879fe604e353eea933498b8ad8396c1
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to