Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Batch Delete (either by date or sort order?)  (Read 5276 times)

0 Members and 1 Guest are viewing this topic.

graemerae

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Batch Delete (either by date or sort order?)
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch Delete (either by date or sort order?)
« Reply #1 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 20 queries.