Re: BackUp ZC [Support Thread]
I'm trying to exclude my images folder from being backup. I'm not sure if I'm doing right. I'm editing the archive.php in the classes folder. Here is what I have there.
PHP Code:
function exclude_files($list)
{
$temp = $this->list_files($list);
foreach ($temp as $current)
$this->exclude[] = $current;
$example->exclude_files("../images/*.*");
}
Is this correct?
Also it would be nice if there was a restore option, at least for the db.
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
smoke133
I'm trying to exclude my images folder from being backup. I'm not sure if I'm doing right. I'm editing the archive.php in the classes folder. Here is what I have there.
PHP Code:
function exclude_files($list)
{
$temp = $this->list_files($list);
foreach ($temp as $current)
$this->exclude[] = $current;
$example->exclude_files("../images/*.*");
}
Is this correct?
Also it would be nice if there was a restore option, at least for the db.
No need to edit the class file.
To exclude more then one directory or file I had to change the exclude_files variable to an array. Note the changes below.
File YOUR_ADMIN/backup_zc.php
Find at line 62
PHP Code:
$exclude_files = '../cache/*.*'; // Exclude cache directory as default
Here is where you would add your list of directories/files that you want to exclude.
Replace with
PHP Code:
// Note each directroy or file name must be surrounded with double quotes and a single comma with no space separating each.
$exclude_files = array("../cache/*.*","../images/*.*");
This change is for the display of excluded.
Fine at line 388
PHP Code:
echo DIR_FILES_EXCLUDED.'<b>'. $exclude_files . '</b><br />';
Replace with
PHP Code:
echo DIR_FILES_EXCLUDED.'<b>'. implode(",",$exclude_files) . '</b><br />';
This change is to match backup_zc which will download the archive.
File YOUR_ADMIN/backup_zc_download.php
Find at line 61
PHP Code:
$exclude_files = '../cache/*.*'; // Exclude cache directory as default
Replace with
PHP Code:
// Note each directroy or file name must be surrounded with double quotes and a single comma with no space separating each.
$exclude_files = array("../cache/*.*","../images/*.*");
Quote:
Also it would be nice if there was a restore option, at least for the db.
BackUp ZC uses Zen Carts information to understand the server and web site layout. So without a good working Zen Cart the restore can not be done. This is why there is no restore option at this time.
Skip
Re: BackUp ZC [Support Thread]
I add the php code like you suggested. The images in the folder are now being exclude from being backup.
The problem that the folders are still showing up on the list folders. Is there a way so that they don't show up on the list?
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
smoke133
I add the php code like you suggested. The images in the folder are now being exclude from being backup.
The problem that the folders are still showing up on the list folders. Is there a way so that they don't show up on the list?
I only had about 15 min to supply you a fix. I have that on my list to do. Hope to get to it tonight or tomorrow.
As always the list is longer then the hours in a day.
Skip
Re: BackUp ZC [Support Thread]
Version 1.0.5 has been submitted to the free software add ons and should be ready for download in a couple of days. But until then here is a link to BackUp ZC Version 1.0.5
Read the readme file for install and upgrade info.
Skip
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
skipwater
Version 1.0.5 has been submitted to the free software add ons and should be ready for download in a couple of days. But until then here is a link to
BackUp ZC Version 1.0.5
Read the readme file for install and upgrade info.
Skip
Thanks for the update Skip. I was having issues again because of the "missing" error_log in the Stats directory and with this update I put the stats directory in the excluded list and it fixed my problems.
Re: BackUp ZC [Support Thread]
Having trouble getting this module to work. The error message that I am getting is below:
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getSize() [<a href='splfileinfo.getsize'>splfileinfo.getsize</a>]: stat failed for /home/content/o/u/t/outdoorking/html/stats/error_logs' in /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php:51 Stack trace: #0 /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php(51): SplFileInfo->getSize() #1 /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php(405): directorySize('/home/content/o...') #2 {main} thrown in /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php on line 51
Any help would be appreciated.
I am on a linux server and using the latest version 1.0.5 backup zc.
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
Bruce1952
Having trouble getting this module to work. The error message that I am getting is below:
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getSize() [<a href='splfileinfo.getsize'>splfileinfo.getsize</a>]: stat failed for /home/content/o/u/t/outdoorking/html/stats/error_logs' in /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php:51 Stack trace: #0 /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php(51): SplFileInfo->getSize() #1 /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php(405): directorySize('/home/content/o...') #2 {main} thrown in /home/content/o/u/t/outdoorking/html/xxxxxxx/backup_zc.php on line 51
Any help would be appreciated.
I am on a linux server and using the latest version 1.0.5 backup zc.
This sounds like the same error that bpryor post had Post 7
The fix he used
Quote:
I was having issues again because of the "missing" error_log in the Stats directory and with this update I put the stats directory in the excluded list and it fixed my problems.
So add this directory /home/content/o/u/t/outdoorking/html/stats/error_logs to the excluded list and that should fix it.
Skip
Re: BackUp ZC [Support Thread]
Hi,
Great looking mod, thanks for contributing. I am trying to install this with a fairly modded and patched 1.3.7.1 on a system with PHP 5.2.9. At the admin screen I get a bunch of good looking info, but then over on the right hand side underneath the options box I get the error:
Quote:
Directories Loaded ...
Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /home/visua18/public_html/tispeed/tsadmin/backup_zc.php on line 44
Any ideas what might be going on there?
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
ts232
Hi,
Great looking mod, thanks for contributing. I am trying to install this with a fairly modded and patched 1.3.7.1 on a system with PHP 5.2.9. At the admin screen I get a bunch of good looking info, but then over on the right hand side underneath the options box I get the error:
Any ideas what might be going on there?
You might not have recursiveiteratoriterator loaded in your php setup.
Try looking admin->tools->Server/Version Info
Scroll down to 'SPL support' and see if it is listed.
If it is not listed you will have to activate it in your php.ini file.
Skip