• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Combining a week old backup db with a current db

#1
One of our mods permanently deleted pages of threads a couple of days ago and I believe the latest backup is a few days old. Is it possible to recall the backup and retain the latest posts?
 

Brogan

XenForo moderator
Staff member
#2
No, it's not possible to merge two databases in that manner.

You would have to revert to a backup, which would result in a loss of any content created since the backup was taken.
 

wang

Well-known member
#3
A workaround, that I think it might work, would be to install a test forum, restore the backup there and then you can try to do a merge of you rmain forum with the test forum. I have not tried it this myself though, and it would be adviceable to make a copy of the main forum before you attempt the merge.
 

wang

Well-known member
#5
It was not meant to be ill advised. I thought that that might have been worth a shot under the circumstances. And as long as a copy of the main forum 's database is made before the merge, then things can be rolled back easy.
 
#6
Thanks all, I guessed it might be difficult, if not impossible, but is always worth asking. The problem we have with multiple copies of the forum is space, so may not be an option. I'm waiting to find out when the last backup was taken.
 
#7
Having said that, if we can determine which threads he's deleted, would take a while, but possible, we could edit all but the missing posts on the backup and then merge perhaps?
 

Mr Lucky

Well-known member
#8
Having said that, if we can determine which threads he's deleted, would take a while, but possible, we could edit all but the missing posts on the backup and then merge perhaps?
If those threads are really important, then that is probably worth a try.

Find all the deleted threads and put them in a newly created forum and delete everything else. Then when you've done the import, you'd need to move the threads to the forums they were in.


Test it first of course.
 

AndyB

Well-known member
#9
You will want to restore from the latest backup. Also note the following two folders will also be required to restore from a backup:

data
internal_data
 

Slavik

XenForo moderator
Staff member
#10
Having said that, if we can determine which threads he's deleted, would take a while, but possible, we could edit all but the missing posts on the backup and then merge perhaps?
It's something I have done before, however there are a lot of side-issues that need to be dealt with, and not something I would recommend to try without a lot of testing beforehand.

Your best bet is to restore the backup to another location, then manually transfer content if its so vital.
 
Last edited: