Added inv restore command

This commit is contained in:
eeintech 2021-02-10 10:55:04 -05:00
parent 89adac49f9
commit d6eae83809

View File

@ -349,12 +349,22 @@ def backup(c):
Create a backup of database models and uploaded media files. Create a backup of database models and uploaded media files.
Backup files will be written to the 'backup_dir' file specified in 'config.yaml' Backup files will be written to the 'backup_dir' file specified in 'config.yaml'
""" """
manage(c, 'dbbackup') manage(c, 'dbbackup')
manage(c, 'mediabackup') 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)'}) @task(help={'address': 'Server address:port (default=127.0.0.1:8000)'})
def server(c, address="127.0.0.1:8000"): def server(c, address="127.0.0.1:8000"):
""" """