forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: jessalken on October 29, 2017, 11:04:23 am

Title: automatic batch add - all?
Post by: jessalken on October 29, 2017, 11:04:23 am
Hi, I was hoping someone can help me! Someone very mean and nasty hacked into my site and deleted 18,000+ photos in my gallery last night (and started uploading porn photos) I have finally secured the server and site now with my host. I have also found all the photo files and reupload them via ftp, all the folders both in ftp and on coppermine are still in the same place with the same names, and the stats are all still there - thank goodness. But I'm wondering is there a way to Batch Add everything automatically - rather than re add each album manually one by one (this could take a very long time with 283 and so many photos) Please can someone help me.

(I added one album called 'Captain Morgan Black Ad Screencaps' to test the batch add one by one works and it does)

http://gal-gadot.com/gallery/index.php

Thank you, Jessica
Title: Re: automatic batch add - all?
Post by: ron4mac on October 29, 2017, 01:18:56 pm
The first thing you should do is to upgrade your CPG site to version 1.5.46 (at least).
Title: Re: automatic batch add - all?
Post by: jessalken on October 29, 2017, 06:45:06 pm
I thought it was up to date, going by the docs. I just updated again to be sure! Any idea on ways to re add all these files without doing it one album at a time? Thank you...
Title: Re: automatic batch add - all?
Post by: jessalken on October 30, 2017, 10:51:16 am
Hi, I was hoping someone can help me! Someone very mean and nasty hacked into my site and deleted 18,000+ photos in my gallery last night (and started uploading porn photos) I have finally secured the server and site now with my host. I have also found all the photo files and reupload them via ftp, all the folders both in ftp and on coppermine are still in the same place with the same names, and the stats are all still there - thank goodness. But I'm wondering is there a way to Batch Add everything automatically - rather than re add each album manually one by one (this could take a very long time with 283 and so many photos) Please can someone help me.

(I added one album called 'Captain Morgan Black Ad Screencaps' to test the batch add one by one works and it does)

Thank you, Jessica
Title: Re: automatic batch add - all?
Post by: phill104 on October 30, 2017, 11:41:34 am
Do you have a backup of your database and files from before the hack? Restoring all the files to their original locations and keeping the counts in tact etc is not an easy task without restoring from a backup. Without knowing exactly what happened and what you now have advising is not easy. The database has file names and locations, but they may not follow the structure you expect. So the file must be put back exactly where the database expects them to be.
Title: Re: automatic batch add - all?
Post by: gmc on November 04, 2017, 12:41:45 pm
reading original post sounds like the database may be ok??
Quote
all the folders both in ftp and on coppermine are still in the same place with the same names, and the stats are all still there - thank goodness

Is it just the need to recreate the thumb and possibly intermediate pictures?
May be as simple as using the admin tools...