etiennerached / godaddy-backup-script Goto Github PK
View Code? Open in Web Editor NEWAutomatically Backup GoDaddy Files and Databases
License: Mozilla Public License 2.0
Automatically Backup GoDaddy Files and Databases
License: Mozilla Public License 2.0
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]}"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.