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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.