The backup file could not be saved. Please check the permissions for writing to your backup directory and try again

Right here was my problem:

“I am also having the issue with the wp-db-backup plugin. I’m running version Wordpress v2.1.3 and wp-db-backup v2.0.5, i have ensured that wp-contents folder is chmod 777 but still get the javascript error “The backup file could not be saved. Please check the permissions for writing to your backup directory and try again”.”

If you have done everything correctly, ie change file permissions and checked there is no conflicting plugins then the reason is likely to be the same as mine.

Check you php.ini file - If php safe mode is on turn it off.

If you can’t access your php.ini file, you might be able to create one in your directory or alternatively ask your web hosting company. You may only be able to edit it through SSH in which case read my article on - SSH Commands.

If you have access to your domain through a plesk control panel sometimes you can turn it off in the domain setup page. When you add a new domain to the server and tick the php box, the php safe mode box is automatically turn on.