forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: graemerae on March 09, 2006, 11:52:09 pm

Title: Batch Delete (either by date or sort order?)
Post by: graemerae on March 09, 2006, 11:52:09 pm


I've got about 15 galleries, with several thousand images - I want to go in and clean out a thousand or so older files. 

Would this work:

In a shell I do a find for photos in the linux filesystem that are over x days old and rm them. 
Then I go into CPG and 'update thumbs/and or resized photos'

Would this update my database to ignore the old files?

Thanks!
Title: Re: Batch Delete (either by date or sort order?)
Post by: Joachim Müller on March 10, 2006, 09:42:10 am
no, you'd have to remove the database entries as well. There's no control in the coppermine user interface to do this - you'd have to use a third-party database tool like phpMyAdmin and run a query there that removes the older files from the database as well. I strongly recommend doing a db dump (backup) before trying.