Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Batch Delete (either by date or sort order?)  (Read 5296 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.018 seconds with 19 queries.