Filippo Giunchedi has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/358783 )
Change subject: Add "latest" links to TTL dumps ...................................................................... Add "latest" links to TTL dumps Bug: T164783 Change-Id: Ia6e2f18938cbb6bc30ac4f6bbaaa2bc26942107e --- M modules/snapshot/files/cron/dumpwikidatardf.sh 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: Daniel Kinzler: Looks good to me, but someone else must approve jenkins-bot: Verified Filippo Giunchedi: Looks good to me, approved diff --git a/modules/snapshot/files/cron/dumpwikidatardf.sh b/modules/snapshot/files/cron/dumpwikidatardf.sh old mode 100644 new mode 100755 index 1640893..b7709ff --- a/modules/snapshot/files/cron/dumpwikidatardf.sh +++ b/modules/snapshot/files/cron/dumpwikidatardf.sh @@ -109,9 +109,12 @@ done mv $tempDir/wikidata$dumpFormat-$dumpName.gz $targetFileGzip +ln -fs "$today/$filename.$dumpFormat.gz" "$targetDirBase/latest-$dumpName.$dumpFormat.gz" gzip -dc $targetFileGzip | bzip2 -c > $tempDir/wikidata$dumpFormat-$dumpName.bz2 mv $tempDir/wikidata$dumpFormat-$dumpName.bz2 $targetFileBzip2 +ln -fs "$today/$filename.$dumpFormat.bz2" "$targetDirBase/latest-$dumpName.$dumpFormat.bz2" + pruneOldDirectories pruneOldLogs -- To view, visit https://gerrit.wikimedia.org/r/358783 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia6e2f18938cbb6bc30ac4f6bbaaa2bc26942107e Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Smalyshev <[email protected]> Gerrit-Reviewer: Daniel Kinzler <[email protected]> Gerrit-Reviewer: Filippo Giunchedi <[email protected]> Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]> Gerrit-Reviewer: Hoo man <[email protected]> Gerrit-Reviewer: Lydia Pintscher <[email protected]> Gerrit-Reviewer: Smalyshev <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
