PDA

View Full Version : mass delete


Delmon
11-15-2002, 03:40 PM
hi

i mass delete my forum threads by mistake

is there any way to get them back?

please

Bison
11-15-2002, 03:45 PM
Only IF you made a database backup ... did you do that?

Delmon
11-15-2002, 03:50 PM
one week back only

Bison
11-15-2002, 03:59 PM
That's what you need ... you can't get back the posts. Your bad on this issue. This backup will overwrite all other recent posts.

You might have to make up an explanation to your guest but at least you'll have your threads back.

Regards...

NTLDR
11-15-2002, 04:23 PM
Originally posted by Rolodex
This backup will overwrite all other recent posts.

Not if you restore the backup correctly.

Bison
11-15-2002, 04:48 PM
If the dump was done with a "vbulletin.sql" file and restored with a "INSERT" statement ... this will overwrite everything, correct?

IF there's another way (Using that file I mentioned), help the guy out please! :)

NTLDR
11-15-2002, 06:06 PM
The only way he will lose threads/posts/members is if he drops the table. The INSERT will only add data or overwrite it with whats probably already there unless its been edited.

So the simple solution is to remove the DROP TABLE and CREATE TABLE SQL statements should they exisit.

Sebastian
11-15-2002, 06:11 PM
Or you could dump/backup the current database then use a program to check the difference between the two, then run the combined .sql, no?

also, how the heck did you mass delete, it asks twice "Are you sure."

Bison
11-15-2002, 07:32 PM
Originally posted by NTLDR
The only way he will lose threads/posts/members is if he drops the table. The INSERT will only add data or overwrite it with whats probably already there unless its been edited.

So the simple solution is to remove the DROP TABLE and CREATE TABLE SQL statements should they exisit.

I'm only speaking on experience here ... I remember inserting a backup over my original table and found that I lost all of my recent posts ... I was using the backup to replace the damage the "attachments as files" hack did to my attachments table.

I took a look inside the sql file and noticed that it drops the tables if they are present and re-creates the table and populates it with the backup data...