kbakba Posted July 2, 2005 Posted July 2, 2005 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:
kbakba Posted July 3, 2005 Author Posted July 3, 2005 Is anyone online today who has backed up their database. Did it go smoothly first run?
demonz Posted July 3, 2005 Posted July 3, 2005 Were online its just that the ones who are online arent that pro :P whith all the coding and stuff lol.
kbakba Posted July 3, 2005 Author Posted July 3, 2005 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.
Guest Posted July 4, 2005 Posted July 4, 2005 Please someone walk me through the steps as what to call the folder and where to put it. <{POST_SNAPBACK}> The directory should be named 'backups' and belongs in /admin/ - make sure it has write permissions. Matti
kbakba Posted July 5, 2005 Author Posted July 5, 2005 :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.
BYGino Posted July 5, 2005 Posted July 5, 2005 :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. <{POST_SNAPBACK}> Check your admin/includes/configure.php specifically your "Ddefine('DIR_FS..." settings are correct.
kbakba Posted July 6, 2005 Author Posted July 6, 2005 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.