[Wikitech-l] Erasing old file versions?
Hello, I have a wiki where bots are uploading new versions of local file once in a while, slowly making the file archive bigger and bigger. Has anyone seen a maintenance script (or is there a simple way) to remove all old verisons of files? The old versions are of no use to the end users, and there are no licenses that require me to keep them (normal users use files from Commons), so they are really just a waste of space. (Here is what it might look like: http://xn--ssongsmat-v2a.nu/ssm/Fil:Export,_Pumpkins,_squash_and_gourds,_2009.svg ) Regards,Leo Wallentin Leonard Wallentin leo_wallen...@hotmail.com +46 (0)735-933 543http://säsongsmat.nu http://nairobikoll.se/ http://twitter.com/leo_wallentin Skype: leo_wallentin -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.4.10 (GNU/Linux) mQENBE1JuiUBCADsAnoxo1o3G2Apkjs8NHSfbN4g/H8HbS4XXfjruZ6Afu6PBMJI CoiopKmTzQojjUZEjM2i4QsynU2xX4PmpMloPCOXEWxQg7q6HgHKyBU9NroL+17T WA/30jGTmi2pkuznX1LpYKz0r8oSUsrg9oIeJmSbPRP6bNjwlgaDzarfYjcfEFXu Y0s8KdVT1M8Zw2Sq7QuYPaiT+gfLMN5FaCzCZPdHZu8L1lXszTtFxztiF0hTd2C6 8yAW3DlTqTOSWqQtt10tf8VxeXPGxfqs6Ti8s5MsAsUtg9vw0A7gQC36SmRXel7W l/rYbkESqDKANgIT6ofbIru0ozdy/BxnL2wXABEBAAG0LUxlb25hcmQgV2FsbGVu dGluIDxsZW9fd2FsbGVudGluQGhvdG1haWwuY29tPokBOAQTAQIAIgUCTUm6JQIb AwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQOYTL0NQ4Ju9AwQf+L655KY1W 9Q43IOfZ6hJBwfPjhC4pWppptxe4atsSIo+wh+UHd4Zle59LjMZqCGJrFmhRNk+E DtReKuZT/9aZ6yIoqIf0qgqs2L+NPsFprLlsl284cZZtU7YR9oeOVwAK6l58pWfD 1YQnZEOZDcklvunXI7SpFesB3YbuEnlcU3AJQ9hBJquEuMsGXlcXin/1zid+wEWW lkJz4nqp/EaZ9ITHpSzhftsvknskttLqbbEiXyGjMH+FO99S5Vbn9PZAs3axRCHV MWZqx7DLM6FOTlowklLR4lH0UGawwDwjRICDJQlhcS4fA5ORByXE3zbZ45MleQJK aTYuzxb6IVBzBrkBDQRNSbolAQgAv2RTauQ/aQbpS718FPoxPCdA/GgRXvYQ/dle G7m+p0EBUuu+XlDThyQOrWMBy4UICp2OvChfeb0x7SQ2Xg7ahRkWuKnhGiPKkvoZ qBVrbZ1bKcjA6QXcImelICtSjd3UTtCHcfNttEe5d000GaRJBAzsZseDVebpblLt X1z/n/9nsas+moAdRpiyfSPX1HFW57429GzDUsyCvQfqaPwPCuZa4OBtqxw/ydyn hGh1fBcm4bwOU5nqUt+N/d7GXSpZtYChuNhQZj0uwtvMnXJoKyIEPRIx1xkRJTaC uZTZKqnNU3EGwtYDhAgMQpVzFXXBoSBAfV9Jz9XPHd4RidakEwARAQABiQEfBBgB AgAJBQJNSbolAhsMAAoJEDmEy9DUOCbviRgH/3Tm05nqdsFk531eOLMkCqSoPupM YSId04pE9qgKZCGHvqYYxWuksgDj9BFCm+vMfW+e45bX4nd2bxkZecMCVvAOQrsB yKnk7g4BFI6YxYluCt5ouaRPcB73ztk+08z9j0GvlCo3IAp06neoC/IH1XhUvkts bXBzxQt7zO7Gic54U516Qzsr4iD6MQsBkGoaSKtLtk4v8xFMgDWIl1ODy70qabES 7+5IJn0vnh9DWJqkosofRMcqYoblwvf7orDuSgr76wokaTKCCsNEOt7TTbO8XVyQ r3wzIiopALjOj/2N9kxaHg9MQOfERV6prfZmkxPP69ptlCnJVZL7vwTO/0E= =KIpq -END PGP PUBLIC KEY BLOCK- ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Erasing old file versions?
Am 15.01.2012 11:04, schrieb Leonard Wallentin: Hello, I have a wiki where bots are uploading new versions of local file once in a while, slowly making the file archive bigger and bigger. Has anyone seen a maintenance script (or is there a simple way) to remove all old verisons of files? The old versions are of no use to the end users, and there are no licenses that require me to keep them (normal users use files from Commons), so they are really just a waste of space. (Here is what it might look like: http://xn--ssongsmat-v2a.nu/ssm/Fil:Export,_Pumpkins,_squash_and_gourds,_2009.svg ) Regards,Leo Wallentin Leonard Wallentin leo_wallen...@hotmail.com +46 (0)735-933 543http://säsongsmat.nu I used successfully https://www.mediawiki.org/wiki/Extension:SpecialDeleteOldRevisions2 for many years with MediaWiki 1.15.1 It does certainly not work with MediaWiki trunk. Please check the https://www.mediawiki.org/wiki/Extension_talk:SpecialDeleteOldRevisions2 for Bug reports. Tom signature.asc Description: OpenPGP digital signature ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Erasing old file versions?
Am 15.01.2012 11:04, schrieb Leonard Wallentin: Hello, I have a wiki where bots are uploading new versions of local file once in a while, slowly making the file archive bigger and bigger. Has anyone seen a maintenance script (or is there a simple way) to remove all old verisons of files? The old versions are of no use to the end users, and there are no licenses that require me to keep them (normal users use files from Commons), so they are really just a waste of space. (Here is what it might look like: http://xn--ssongsmat-v2a.nu/ssm/Fil:Export,_Pumpkins,_squash_and_gourds,_2009.svg ) Regards,Leo Wallentin Leonard Wallentin leo_wallen...@hotmail.com +46 (0)735-933 543http://säsongsmat.nu I used successfully https://www.mediawiki.org/wiki/Extension:SpecialDeleteOldRevisions2 for many years with MediaWiki 1.15.1 Thank you, but as far as I can understand SpecialDeleteOldRevisions2 does *not* delete archived files, but old page revisions? (I have used it for that purpose myself once or twice.) Removing old revisions of a file page still leaves the old file versions in $IP/images/archive ./Leo ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Erasing old file versions?
On Sun, Jan 15, 2012 at 5:04 AM, Leonard Wallentin leo_wallen...@hotmail.com wrote: Has anyone seen a maintenance script (or is there a simple way) to remove all old verisons of files? Yep, you're looking for the deleteArchivedFiles and deleteArchivedRevisions maintenance scripts (both of which can be found in the 'maintenance' directory). No need to use the outdated extension Tom suggested :) -Chad ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Erasing old file versions?
On Sun, Jan 15, 2012 at 5:04 AM, Leonard Wallentin leo_wallen...@hotmail.com wrote: Has anyone seen a maintenance script (or is there a simple way) to remove all old verisons of files? Yep, you're looking for the deleteArchivedFiles and deleteArchivedRevisions maintenance scripts (both of which can be found in the 'maintenance' directory). -Chad Beautiful, thank you a lot! /Leo ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l