grandad
Member
I have a few Wordpress installations running and want to create a simple, reliable way of backing up the databases. For various reasons I have decided against plugins, and am using Cron.
I created a script which is called from Cron -
My problem is that this script works perfectly on two of the sites, but on the third it just produces an empty file.
The database sizes are 13.8 Mb, 3.4 Mb and 31.4 Mb, and it is the last one that is failing.
Has anyone got any ideas as to why one should fail when the other two work? Could the size be relevant?
I created a script which is called from Cron -
Code:
/usr/bin/mysqldump --host=hostserver --user=username --password=password database --quick > /usr/local/webspace/httpdocs/backups/backupdb-`date +%d.%m.%y`.sql
My problem is that this script works perfectly on two of the sites, but on the third it just produces an empty file.
The database sizes are 13.8 Mb, 3.4 Mb and 31.4 Mb, and it is the last one that is failing.
Has anyone got any ideas as to why one should fail when the other two work? Could the size be relevant?