From d6eae83809ad837c353cfed35bef5ad49b54f7b5 Mon Sep 17 00:00:00 2001 From: eeintech Date: Wed, 10 Feb 2021 10:55:04 -0500 Subject: [PATCH] Added inv restore command --- tasks.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 77604eaf3a..579887c809 100644 --- a/tasks.py +++ b/tasks.py @@ -349,12 +349,22 @@ def backup(c): Create a backup of database models and uploaded media files. Backup files will be written to the 'backup_dir' file specified in 'config.yaml' - """ manage(c, 'dbbackup') manage(c, 'mediabackup') +@task +def restore(c): + """ + Restores database models and media files. + + Backup files are read from the 'backup_dir' file specified in 'config.yaml' + """ + + manage(c, 'dbrestore') + manage(c, 'mediarestore') + @task(help={'address': 'Server address:port (default=127.0.0.1:8000)'}) def server(c, address="127.0.0.1:8000"): """