We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Never mind. I was using Version 1.7. I’m not sure how that happened, but 2.2 worked fine.

    Thanks again!

      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 30223
      • 1,010 Posts
      Finally installed this little gem but like flughund above the mysql dump is created but not included in the zip file. Just to let you know...

      I like to set the archive directory to a different hard drive but that is currently not possible... Perhaps something you can look at in the next version?

      Great work and thank you for sharing it.
        • 6723
        • 93 Posts
        Ok - trying out this module prior to moving a site from a staging area to a live area.

        I’m using Version: 2.2 - 2008/10/19 and copied all the files from the zip into a folder called ’backup’ at the root.

        Created the module and ran it. Returned this;

        from page www.mysite.com/backup

        Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php

        I’ve checked and the config file is there and has all the config details to connect to Sql dbase etc

        Not sure what I’m doing wrong?

        Thanks, David

          • 34162
          • 1 Posts
          I’m using BkupMODx for quite a while now and I’m very happy with it laugh

          When I restored a subdomain database last week, I discovered I missed 7 tables, which all of them are empty.

          The backup of the database contains all data, but from the table modx_user_settings on, the tables are missing.

          This resulted in some errors, of course, but I was able to export the tables from another site and imported them, so I managed to complete the database.

          Still, any idea why this is happening?

          FYI, I use BkupMODx 2.2 with MODx 0.9.6.3, PHP version 5.2.4 and MySQL version 4.1.21

            • 5274
            • 177 Posts
            Quote from: DavidJColbran at Apr 07, 2009, 10:25 AM

            Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php

            It’s not your fault. The config file requires a couple more entries.

            From the default config.inc.php:
            // ==================================================
            // GENERAL
            // ==================================================
            
            site_url     = 
            base_path    = 
            bkup_dir     = backup/
            archive_dir  = backup/archive/
            archive_name = backup
            seconds      = 180
            megabytes    = 64
            



            Enter values for site_url and base_path

            HELP: site_url
            You should include the trailing slash ’/’ on the site_url.
            EXAMPLE: http://www.go4it2day.com/

            HELP: base_path
            You should include the trailing slash ’/’ on the base_path.
            EXAMPLE: /home/go4it2day/www/

            // ==================================================
            // GENERAL
            // ==================================================
            
            site_url     = http://www.go4it2day.com/
            base_path    = /home/go4it2day/www/
            bkup_dir     = backup/
            archive_dir  = backup/archive/
            archive_name = backup
            seconds      = 180
            megabytes    = 64
            


            From the default config.inc.php:
            // ==================================================
            // SECURITY
            // ==================================================
            
            login      = true
            timeout    = 0
            activity   = false
            
            user_pass0 = 
            user_pass1 = 
            user_pass2 = 
            user_pass3 = 
            user_pass4 = 
            user_pass5 = 
            user_pass6 = 
            user_pass7 = 
            user_pass8 = 
            user_pass9 = 
            



            Enter values for user_pass

            HELP: user_pass
            This is a user name and password to access these scripts.
            Use a comma (’,’) between the user name and password without any spaces (’ ’).
            EXAMPLE: admin,Q1w2e3r4t5Y6

            // ==================================================
            // SECURITY
            // ==================================================
            
            login      = true
            timeout    = 0
            activity   = false
            
            user_pass0 = admin,Q1w2e3r4t5Y6
            user_pass1 = 
            user_pass2 = 
            user_pass3 = 
            user_pass4 = 
            user_pass5 = 
            user_pass6 = 
            user_pass7 = 
            user_pass8 = 
            user_pass9 = 
            


            That should get you into BkupMODx. You can config the rest using the Config Tool once you’ve gained access.

            Good luck!
              • 5274
              • 177 Posts
              Quote from: WeBe at Apr 07, 2009, 11:21 AM

              The backup of the database contains all data, but from the table modx_user_settings on, the tables are missing.
              Sounds like a memory issue. If you’re using PHP5 then near the end of the output from the Backup Tool you’ll see a message like:

              PHP Version >= 5.2.0 - Peak memory usage: 29097984 (28MB)
              


              If that number is at or close to 64MB then try setting "megabytes = 96" or even 128 and see if that fixes the MySQL dump from being truncated. You can do that through the Config Tool or edit the config.inc.php file directly.
                • 34162
                • 1 Posts
                Peak memory usage is 45Mb. Megabytes is set to 128.

                My main site contains a much bigger database (it also contains the smf forums tables). The peak memory usage there is 50Mb and megabytes is also set to 128. That backup doesn’t give any problem. I must add that the last table there (smf_topics) contains data.
                  • 5274
                  • 177 Posts
                  Website Backup and Restore: A Disaster Recovery Tool

                  v2.3 just released! (pending admin approval)

                  It’s been 6 months since the last release. The significant changes are the ability to modify user_pass values in the Config Tool and a new INSTALL.txt file with updated install instructions and sample values for the config.inc.php.

                  Here are the official changes from the README.txt file:

                  * Added INSTALL.txt file

                  • Removed and enhanced instructions from README.txt

                  * Improved Config Tool

                  • Added update for user_pass values
                  • Added user_pass values to lang.inc.php
                  • Added warning if all user_pass are empty

                  * Improved view templates

                  • Heredoc variable replaced separate echo commands in view files
                  • Use single echo in view.class.php

                  * Standardized file, class and function naming convention

                  • Eliminated class and function switch commands in MVC dispatcher files
                  • Pushed class and function names out to URL variables and Nav commands
                  * Simplified model class files and public variables

                  • model_filelist.class.php renamed from model_file_list.class.php
                  • model_dbdump.class.php renamed from model_mysql_dump.class.php
                  • $filelist renamed from $mdl_file_list
                  • $dbdump renamed from $mdl_mysql_dump

                  Enjoy!
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Should be approved now along with several others.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 25551 ☆ A M B ☆
                      • 1,231 Posts
                      Hi Chuck, i’ve just tried that latest version and mostly seems fine for me.  However I have a couple questions.  I have my config setup to backup the sql and to not backup the backup directory but neither is happening even though it says the whole process completed?

                      Where should the sql file be exactly and I’m using  dir1 = /home/site/public_html/backup/,false  to not backup the backup directory.

                      Thanks, Ross


                      I just checked in the backup archive directory of the ZIP and I see the sql there! I had no idea it was in there and assumed it was other ZIP backups, not the SQL.

                      :)
                        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                        AugmentBLU - MODX Partner

                        BLUcart - MODX Revolution E-Commerce & Shopping Cart