expandedfronts / revisr

Revisr: Git for WordPress
https://revisr.io
GNU General Public License v3.0
195 stars 41 forks source link

DB backups directory should be moveable #73

Open ChemicalSailor opened 9 years ago

ChemicalSailor commented 9 years ago

Saving DB backups in the uploads directory is a reasonable default but there should be an option to save them elsewhere (e.g wp-content/revisr_backups/). In my environment I have uploads ignored by git hence mysqldump are also ignored.

mattgrshaw commented 9 years ago

Thanks for the suggestion. I'll definitely look into adding a filter for changing the directory for the next release.

ChemicalSailor commented 9 years ago

That sounds great. When you say filter do you mean using the add_filter mechanism? Defining a constant in wp_config would be better.

mattgrshaw commented 9 years ago

Good point. I'll make it a constant.

jimwebb commented 8 years ago

Here's a PR for you: https://github.com/expandedfronts/revisr/pull/105