GithubHelp home page GithubHelp logo

godaddy-backup-script's People

Contributors

andrewparlane avatar etiennerached avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

godaddy-backup-script's Issues

mysqldump error

Recently my backup script started producing an error from mysql dump:

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

After a bit of research I found this thread: https://forums.cpanel.net/threads/cpanel-33473-mysql-dump-process-privilege-error-after-5-7-31-update.675657/ which explains the issue.

So there are two possible fixes, provide your backup database user with the PROCESS privilege or add --no-tablespaces to the mysqldump command. I have not found a way to add the PROCESS privilege to the user via godaddy's "shared hosting with cpanel", which leaves just the --no-tablespaces workaround.

The main reason I'm posting this as an issue rather than a pull request, is I'm not sure exactly what the --no-tablespaces argument does and what effect that is likely to have on the backups. If tablespaces are a critical part of the database, then this workaround is useless as we won't be able to restore from the backup. If however they are not actually used for anything important / are automatically created as needed, then this workaround will be fine.

Some more research is required into what exactly a tablespace is, and whether or not they should be backed up.

In the meantime if anyone wants to use this workaround they should modify backup.sh to change the mysqldump command from:

mysqlCmd="mysqldump --defaults-extra-file=$BASEDIR/${dbCnf[$i]} ${dbName[$i]}"

to

mysqlCmd="mysqldump --defaults-extra-file=$BASEDIR/${dbCnf[$i]} --no-tablespaces ${dbName[$i]}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.