Page 2 of 29 FirstFirst 123412 ... LastLast
Results 11 to 20 of 286
  1. #11
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default 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.

  2. #12
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: BackUp ZC [Support Thread]

    Quote Originally Posted by smoke133 View Post
    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/*.*"); 
    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
    • 446F63746F722057686F •

  3. #13
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default 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?

  4. #14
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: BackUp ZC [Support Thread]

    Quote Originally Posted by smoke133 View Post
    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
    • 446F63746F722057686F •

  5. #15
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default 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
    • 446F63746F722057686F •

  6. #16
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: BackUp ZC [Support Thread]

    Quote Originally Posted by skipwater View Post
    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.

  7. #17
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    493
    Plugin Contributions
    0

    Default 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.
    Last edited by Bruce1952; 11 Oct 2010 at 11:37 AM. Reason: added info

  8. #18
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: BackUp ZC [Support Thread]

    Quote Originally Posted by Bruce1952 View Post
    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
    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
    • 446F63746F722057686F •

  9. #19
    Join Date
    May 2006
    Posts
    170
    Plugin Contributions
    1

    Default 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:

    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?

  10. #20
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: BackUp ZC [Support Thread]

    Quote Originally Posted by ts232 View Post
    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
    • 446F63746F722057686F •

 

 
Page 2 of 29 FirstFirst 123412 ... LastLast

Similar Threads

  1. ZX Slideshow support thread
    By balihr in forum All Other Contributions/Addons
    Replies: 743
    Last Post: 30 Mar 2024, 02:26 AM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  3. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  4. v151 Ship2Pay Support thread
    By Design75 in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 5 Nov 2019, 01:14 PM
  5. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR