It is currently Sat Jan 23, 2021 6:42 am
All times are UTC + 8 hours
James.W@AST wrote:by the way, mysqldump should be available since 1.0.9
Backing up database performance_schema to /volume1/sqlbackup/mysql/performance_schema.sql\n
/volume1/sqlbackup/mysqlbackup.sh: line 74: /volume0/usr/builtin/sbin: Permission denied
atiras wrote:I'm trying to use this script and testing it by executing it as root before I schedule it using cron. I get the following error:
- Code: Select all
Backing up database performance_schema to /volume1/sqlbackup/mysql/performance_schema.sql\n
/volume1/sqlbackup/mysqlbackup.sh: line 74: /volume0/usr/builtin/sbin: Permission denied
The sql user and password exist and have all rights to all databases. (I've hard-coded these for now). I've also tried using no password and the root account for sql -- no joy.
The share sqlbackup exists and has RW access for everyone.
What else do I need to check?
ho66es wrote:Ok this is the script I am using from cron
cron entry is
- Code: Select all
# backup prep
10 1 * * * /volume1/misc/mysqlbackup.sh
this is designed to be run before my backups to remote location so that the database is fully backed up daily and previous backups are archived. The backup dumps each database to a separate sql file and is commented where your install may differ from mine (I run the script from a share called misc, the backups go to a share called backup and the password for the backup user is stored in a file /etc/backuppass the only contents of that file are the password.
*updated script*
please feel free to read and get back to me with any ideas for changes / fixes. If you choose to try this please understand I make no guarantees other than it works for me and on my austor and I will not be responsible if it damages the contents of your nas in any way etc etc.
Users browsing this forum: No registered users and 3 guests