[V3] Optimize the backup command (#1666)

* [V3 Core] Enhance [p]backup to exclude some files

* Backup the repo list too

* Lol Sinbad's pre-commit hook

* Add option of sending the backup to the owner via DM

* Drop an unnecessary config object in RepoManager

* Move the backup functionality in redbot-setup to the new stuff

* More work on implementation, including backing up the instance data
This commit is contained in:
palmtree5
2018-05-27 20:56:28 -08:00
committed by Kowlin
parent f01d48f9ae
commit 7775b16199
5 changed files with 99 additions and 38 deletions

View File

@@ -33,9 +33,8 @@ def patch_relative_to(monkeysession):
@pytest.fixture
def repo_manager(tmpdir_factory, config):
config.register_global(repos={})
rm = RepoManager(config)
def repo_manager(tmpdir_factory):
rm = RepoManager()
# rm.repos_folder = Path(str(tmpdir_factory.getbasetemp())) / 'repos'
return rm