plainblack.com
Username Password
search
Bookmark and Share

Uploads File Cleanup utility script

This utility script takes a site config file and finds its uploads directory. Every storage location is checked against the site's database and if it is no longer in use, it is moved to uploads/arch for archiving/deletion.

The reason for creating the script was because our WG upload process failed lots of times on uploading images to galleries - and this left a lot of old files in uploads.

Running this script took our site down from 19G to 2.5G.

There is a version suited to the wre - place fileCleanup.pl in /data/WebGUI/sbin

There is also a version for Debian's webgui installation, place wg-fileCleanup in /usr/bin and chmod +x it.

Comments
0Klaus: "Is it compatible with all WebGUI 7.x version?"
Downloadwg-fileCleanup wg-fileCleanup
fileCleanup_pl.txt fileCleanup_pl.txt
LinksXoolon
No Support Offered
Statistics Downloads: 120
Views: 461
Rating: 0
Updated: 9/13/2011
Keywords
NavigationMore from Xoolon
Back to the Bazaar
© 2012 Plain Black Corporation | All Rights Reserved