mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-21 08:27:38 +00:00
Backup update (#10586)
* Update django-dbbackup version * Specify STORAGES option for dbbackup * Add more backup configuration * Support custom date formats * Add connector options * Extend functionality of invoke backup * Add extra options for restore task * Add invoke task for finding additional backups * Small tweaks * Add docs around backup / restore * Fix typo * Add example for GCS storage * More docs
This commit is contained in:
@@ -233,12 +233,12 @@ def define_env(env):
|
||||
return url
|
||||
|
||||
@env.macro
|
||||
def invoke_commands():
|
||||
def invoke_commands(command: str = '--list'):
|
||||
"""Provides an output of the available commands."""
|
||||
tasks = here.parent.joinpath('tasks.py')
|
||||
output = gen_base.joinpath('invoke-commands.txt')
|
||||
|
||||
command = f'invoke -f {tasks} --list > {output}'
|
||||
command = f'invoke -f {tasks} {command} > {output}'
|
||||
|
||||
assert subprocess.call(command, shell=True) == 0
|
||||
|
||||
|
Reference in New Issue
Block a user