Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reverting to a Backup


Broadsword

Recommended Posts

Posted

After following the instructions here http://www.oscommerce.com/forums/index.php?showtopic=172163 i have now been left with a site i can't access and an Admin area i also can not access fully.

 

Rather than messing about i thought it might be quicker to just revert to a backup.

 

I can still access my server via FTP and can access the backups i made. Is there a way i can revert to one of these backups without having access to my Admin area?

 

Thanks in advance.

Posted

The 'backups' you can access via FTP are probably (if they are in admin/backups) just backups of the database and not of files/folders.

 

Vger

Posted

Just remove this code from admin/includes/application_top.php

 

  // include authentication user/password of administration
require(DIR_WS_INCLUDES . 'authen.php');

 

(The backups in the admin area are DB backup, it will not help you for backing up files)

Posted

Thanks both for your responses. I have all my files backed up on my PC so i think i'll just re-install osCommerce then upload the relavant files. Probably easier and the most straight forward thing to do!

 

Cheers again. I'll have to be more careful next time!

Posted

Try just uploading the backup files. By doing it this way you won't have to delete the database.

 

Vger

Posted

I'm getting there. I decided to have a beer and have a breather and return and try to figure it out. I now have the site back and running as normal. I can now also access the main Admin menu pade without a single error.............the only thing that's a big buggered now is that every link within the Admin menu brings up a "The page cannot be displayed" page!

 

I'm still unsure as to what little bit is wrong now. I'm determined to figure it out though rather than reinstalling the whole thing. Obviously, as i cannot get to the Tools within admin i am unable to load any backup - though i don't think that would make any difference anyway as there's obviously something a-miss with on of the main php files.

 

Cheers again.

Posted

I'm NEARLY there!

 

Managed to sort things and can get back into my Admin area, most is ok although there are a few things missing. The main thing i want is the backups.

 

When i go to database backups i get this error at the top -

 

Error: Backup directory does not exist. Please set this in configure.php.

 

The folder is still on my server and contains the backups i made, within my admin/configure.php file i ahve the following line -

 

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

What else do i need to do to get my backups showing again so i can restore one of them?

 

There are also other things missing within the database that i was to rectify.

Posted

Hmmm....

 

As i was having no luck getting the database back i have installed phpMyAdmin on my server.

 

I have now tried to install my last backup i had with osCommerce and used the SQL button, searched for the .sql file and pressed go and then got the error - File could not be read (1)

 

Does anyone have any ideas what else i need to do or can try?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...