lesterchan / wp-dbmanager

Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up, optimizing and repairing of database.
https://wordpress.org/plugins/wp-dbmanager/
71 stars 26 forks source link

dbmanager wont delete old backup files #19

Closed betrcode closed 7 years ago

betrcode commented 7 years ago

dbmanager won't delete old backup files. Maximum Backup Files is set to 12, but they are never deleted. Is there any logging of the attempts to delete? Perhaps there would be a clue there. I suspect a file system permissions issue, but all is green on the "Backup DB" page in wp-admin. "Excellent. You Are Good To Go."

Using version 2.77 with Wordpress 4.6.1, but I've had the same issue for many earlier versions too.

Any ideas?

lesterchan commented 7 years ago

Most likely it is a permission issue. The function to delete the backup is on line 374 https://github.com/lesterchan/wp-dbmanager/blob/master/wp-dbmanager.php#L374. You probably have to step through the function to see where it fails.

betrcode commented 7 years ago

Thanks for the reply @lesterchan Will investigate. You can close this issue if you like.