Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Backup Directory Does Not Exsist


gaspower

Recommended Posts

Posted

Hello,

 

I am getting an error saying that the backup directory does not exist. In the admin panel under database backup, the right panel shows (Backup Directory: ./catalog/admin/backups/). The config file shows below, and I am missing something that directs it correctly. Any help would be great.

 

Thanks JR

 

define('HTTP_SERVER', 'http://www.xxxxxxx.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.xxxxxxxx.com');

define('HTTPS_CATALOG_SERVER', 'https://www.xxxxxxxx.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

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

Posted

You have to create the directory using CPanel or an FTP program. osCommerce does not create it for you. To use the backup feature you have to leave the backup directory as 777 which is not a good idea unless you are sure your admin is very well protected and hidden. IMO it is best to not create it, or create it with 755 and never use it.

 

All the backups directory is for is to backup your database which can be done using CPanel (full site backup) or set up a cron job to do it nightly (very good idea for operational stores).

 

Having your DB file in your admin is not good because if you ever get hacked they will have access to it. Keeping it out of the admin gives you a little more protection especially if you store credit card numbers.

Archived

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

×
×
  • Create New...