We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32667
    • 38 Posts
    Using v2.2 I can see it dumping the MySQL database, but then it zips it up and the zip ends up being 22 bytes and the sql dump is deleted.

    Any ideas?
      • 5274
      • 177 Posts
      Quote from: woundedbeer at Nov 17, 2008, 01:47 PM

      Using v2.2 I can see it dumping the MySQL database, but then it zips it up and the zip ends up being 22 bytes and the sql dump is deleted.

      Any ideas?

      Increase the memory value to something big like 256 (Mb). How big is your website?
        • 32667
        • 38 Posts
        I increased memory to 256mb. I commented out the delete/unlink function and my SQL dumps are only 13MB. Not sure what is going on during the zip process.
          • 5274
          • 177 Posts
          Quote from: woundedbeer at Nov 17, 2008, 03:47 PM

          I increased memory to 256mb. I commented out the delete/unlink function and my SQL dumps are only 13MB. Not sure what is going on during the zip process.

          What directory(s) are you asking the scripts to backup?  If there is no value then nothing gets backed up.  Don’t forget to add the trailing "/" and the ",true" of ",false" at the end for directory recusion.

          EDIT: I recreated the 22 byte backup when the dir0-dir9 config values were left blank. That’s default for the config as installed. I didn’t include a test for missing directory values but maybe it would help in a future release.
            • 30334
            • 13 Posts
            "ReadMe.txt" says "8 - Modify the values in the config file." on New Installation.

            What does it mean I should do?

            Which file should I rewrite?
            How should I rewrite it?
              • 5274
              • 177 Posts
              The only thing you need to change in release 2.2 is the user:password values. Use a text editor and modify config.inc.php. The rest of the config values can be changed in the Config Tool.
                • 30334
                • 13 Posts
                Thanks for your advice.

                The MODx Module Manager says "Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php" and doesn’t work any more.

                How do I fix this problem?
                  • 5274
                  • 177 Posts
                  Quote from: Tomophy at Nov 24, 2008, 01:02 AM

                  Thanks for your advice.

                  The MODx Module Manager says "Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php" and doesn’t work any more.

                  How do I fix this problem?

                  That says you don’t have MODx installed, (or the BkupMODx scripts are installed in the wrong place). The fix is to change the "mysql" value from "3" to "2" (or even "1" to not backup anything in MySQL). If you use "2" and want to backup any MySQL data then you’ll have to change the host, user, password and dbase values. These are the values that are to access the MySQL database, not MODx.
                    • 30334
                    • 13 Posts
                    Thanks again.

                    Is it correct that I put BkupMODx in the "backup" folder in the root of my website?

                    I changed "mysql" values according to your advice. So the config error was fixed. But I couldn’t login. Which name and password should I use?

                    "config.inc.php" says "// See bkup_config_example.php for descriptions and examples.".
                    Where is "bkup_config_example.php"?

                    I appreciate your help.
                      • 5274
                      • 177 Posts
                      Quote from: Tomophy at Nov 24, 2008, 09:36 AM

                      Thanks again.

                      Is it correct that I put BkupMODx in the "backup" folder in the root of my website?

                      I changed "mysql" values according to your advice. So the config error was fixed. But I couldn’t login. Which name and password should I use?

                      "config.inc.php" says "// See bkup_config_example.php for descriptions and examples.".
                      Where is "bkup_config_example.php"?

                      I appreciate your help.

                      The config example file is no longer needed. Help is located in the Config Tool when you select a field to update. The only thing I missed was the user,password values in the Config Tool which I fixed in the next, unreleased version. You’ll have to update the user_pass value with a text editor in the backup/config.inc.php file. The format is "username,password" with no spaces before, after or in-between.