Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Procedures for creating Back Up folder in Admin


kbakba

Recommended Posts

Hi,

this is probably simple but I do not know how to go foward with it.

 

The admin panel said I needed to create a backup directory and give it 777 permission.

 

So I went to Admin/ and created a folder called ... backups. (admin/backups/)

and gave it 777 permissions.

 

The admin panel now says

Warning: filemtime(): Stat failed for /httpdocs/oscommerce/admin/backups. (errno=2 - No such file or directory) in /httpdocs/oscommerce/admin/backup.php on line 369....370.....389.....390

 

 

I am assuming that this means that the file backup.php

needs to be revised too? Here are the mentioned LINES 369, 370,389,390:

 

369:$file_array['date'] = date(PHP_DATE_TIME_FORMAT, filemtime(DIR_FS_BACKUP . $entry));

 

370:$file_array['size'] = number_format(filesize(DIR_FS_BACKUP . $entry)) . ' bytes';

 

389: <td class="dataTableContent" align="center" onclick="document.location.href='<?php echo tep_href_link(FILENAME_BACKUP, $onclick_link); ?>'"><?php echo date(PHP_DATE_TIME_FORMAT, filemtime(DIR_FS_BACKUP . $entry)); ?></td>

 

390: <td class="dataTableContent" align="right" onclick="document.location.href='<?php echo tep_href_link(FILENAME_BACKUP, $onclick_link); ?>'"><?php echo number_format(filesize(DIR_FS_BACKUP . $entry)); ?> bytes</td>

 

Can anyone provide me with a simple solution to this?

 

Thank you. :rolleyes:

Link to comment
Share on other sites

Well...I deleted my admin/backups file from my directory. That erased that problem.

 

BUT, surely everyone has used the backup feature in the ADMIN.

I think I am creating an INCORRECT folder name.

 

Please someone walk me through the steps as what to call the folder and where to put it.

Link to comment
Share on other sites

Please someone walk me through the steps as what to call the folder and where to put it.

 

The directory should be named 'backups' and belongs in /admin/ - make sure it has write permissions.

 

Matti

Link to comment
Share on other sites

:o

yes,............admin/backups/

 

but whats this mean when I go to the backups tool in admin

 

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

 

How does one "set this" in configure.php---besides there are 2 configure.php's.

 

Helpp will be appreicated.

Link to comment
Share on other sites

:o

yes,............admin/backups/

 

but whats this mean when I go to the backups tool in admin

 

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

 

How does one "set this" in configure.php---besides there are 2 configure.php's.

 

Helpp will be appreicated.

Check your admin/includes/configure.php specifically your "Ddefine('DIR_FS..." settings are correct.

Link to comment
Share on other sites

Hi,

Thank you for your time.

Okay here is what the problem was so we can close this thread:

 

Myi nstallation files said...in the admin/includes/configure.php:

 

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

 

..........

 

all I did to make it right was put a forward slash before backups.

 

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

 

 

Thanks again.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...