revisr icon indicating copy to clipboard operation
revisr copied to clipboard

DB backups directory should be moveable

Open ChemicalSailor opened this issue 10 years ago • 4 comments

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.

ChemicalSailor avatar Aug 16 '15 14:08 ChemicalSailor

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

mattgrshaw avatar Aug 19 '15 03:08 mattgrshaw

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

ChemicalSailor avatar Aug 20 '15 16:08 ChemicalSailor

Good point. I'll make it a constant.

mattgrshaw avatar Aug 21 '15 19:08 mattgrshaw

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

jimwebb avatar Sep 12 '16 22:09 jimwebb