1st Q in https://wordpress.org/plugins/wp-dbmanager/faq/
You need to echo out the command that the the plugin will run, SSH into your NAS and run that command.
Hi Lester, I tested the above suggestion, but have no result so far.
I did the following:
1. In wp-dbmanager.php
2. Find check_backup_files(); on line 230
3. Add below it echo $command;
4. Go to WP-Admin -> Database -> Backup
5. Click Backup
6. It should print some debugging statements
7. Copy that line than run it in SSH
8. If you need help on SSH contact your host or google for more info
But i didn’t find check_backup_files(); on line 230, it was on line 246, is that the same:
243 ### Executes OS-Dependent mysqldump Command (By: Vlad Sharanhovich)
244 function execute_backup($command) {
245 $backup_options = get_option('dbmanager_options');
246 check_backup_files();
247
248 if( realpath( $backup_options['path'] ) === false ) {
After adding the echo command it looks like this:
243 ### Executes OS-Dependent mysqldump Command (By: Vlad Sharanhovich)
244 function execute_backup($command) {
245 $backup_options = get_option('dbmanager_options');
246 check_backup_files();
247 echo $command;
248
249 if( realpath( $backup_options['path'] ) === false ) {
Then I go to WP-admin -> Database -> Backup DB
But nothing is shown 🙁
Is there something i do wrong?
That looks correct. Howo about use die if that doesn’t work?
echo $command; die();
Oops, duh…excuse me, forgot to press the backup button to show the echo. The echo works now and shows the following:
bin/mysqldump --force --host='localhost' --user='USERNAME' --password='PASSWORD' --default-character-set="utf8" --add-drop-table --skip-lock-tables DATABASENAME > /volume1/web/domainname/wp-content/backup-db/1476571334_-_DATABASENAME.sql
But after running this line in SSH, it gives the following line as a reaction:
-sh: /volume1/web/domainname/wp-content/backup-db/1476571334_-_DATABASENAME.sql: Permission denied
What’s wrong???
-
This reply was modified 7 years, 6 months ago by bvstrien.
I have no idea what is wrong. I am guessing permission issue (based on the errror).
It seems you can;t use this plugin on your server. You might want to try an alternative like https://wordpress.org/plugins/wp-db-backup/ because it uses PHP to generate the backup which should not give you a permission issue.
Hi Lester, i’ve tried the other plugin and that works! However it is strange the first plugin won’t work. The sever is my own Synology NAS, so i could do somerhing with rigjts and permissions. I just don’t know where tondo that? Do tou have any clue?
Thanx for the help so far!
I am not sure as well since I don’t use Synology myself. I don’t think Synology provides root access or the running user doesn’t have access to the path?
Ok thanx so far. I got the other plugin working, so the main problem is solved, a proper backup function 😁👍