Batch Delete (either by date or sort order?) Batch Delete (either by date or sort order?)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Batch Delete (either by date or sort order?)

Started by graemerae, March 09, 2006, 11:52:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

graemerae



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!

Joachim Müller

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.