[wip] Add args and disable space used by default

This commit is contained in:
ljf 2018-08-31 18:56:26 +02:00
parent 74efa794f8
commit 621bffbfbe
2 changed files with 15 additions and 9 deletions

View file

@ -941,7 +941,7 @@ backup:
action: store_true action: store_true
--space-used: --space-used:
help: Display size used help: Display size used
action: store_true action: store_false
### backup_repository_add() ### backup_repository_add()
add: add:
@ -954,12 +954,12 @@ backup:
path: path:
help: Path eventually on another server help: Path eventually on another server
extra: extra:
pattern: *pattern_backup_repo_path pattern: *pattern_backup_repository_path
-n: -n:
full: --name full: --name
help: Name of the repository help: Name of the repository
extra: extra:
pattern: *pattern_backup_repo_name pattern: *pattern_backup_repository_name
-d: -d:
full: --description full: --description
help: Short description of the repository help: Short description of the repository
@ -969,14 +969,19 @@ backup:
-q: -q:
full: --quota full: --quota
help: Quota to configure with this repository help: Quota to configure with this repository
--no-encryption: --e:
help: If distant don't encrypt full: --encryption
help: Type of encryption
### backup_repository_update() ### backup_repository_update()
update: update:
action_help: Update a backup repository action_help: Update a backup repository
api: PUT /backup/repository/<name> api: PUT /backup/repository/<name>
arguments: arguments:
name:
help: Name of the backup repository to update
extra:
pattern: *pattern_backup_repository_name
-d: -d:
full: --description full: --description
help: Short description of the repository help: Short description of the repository
@ -998,7 +1003,7 @@ backup:
name: name:
help: Name of the backup repository to remove help: Name of the backup repository to remove
extra: extra:
pattern: *pattern_backup_repo_name pattern: *pattern_backup_repository_name
############################# #############################
# Monitor # # Monitor #

View file

@ -52,7 +52,7 @@ def backup_repository_list(name):
""" """
pass pass
def backup_repository_info(name): def backup_repository_info(name, human_readble=True, space_used=False):
""" """
Show info about a repository Show info about a repository
@ -61,7 +61,8 @@ def backup_repository_info(name):
""" """
pass pass
def backup_repository_add(name): def backup_repository_add(name, path, name, description=None, methods=None,
quota=None, encryption="passphrase"):
""" """
Add a backup repository Add a backup repository
@ -70,7 +71,7 @@ def backup_repository_add(name):
""" """
pass pass
def backup_repository_update(name): def backup_repository_update(name, description=None, quota=None, password=None):
""" """
Update a backup repository Update a backup repository