-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
(I'm creating these issues as note to myself or anybody who wants to work on django-backupdb)
backup_func = backup_config['backup_func'] if backup_func is do_postgresql_backup: BACKUP_CONFIG = { def get_mysql_args(db_config):
This is kind of nasty. It should use inheritance/polymorphism, and do something like (just the idea):
backend_class = backends[backend_name]
backend = backend_class(**credentials)
backend.do_backup()