diff --git a/data/actionsmap/yunohost.yml b/data/actionsmap/yunohost.yml index 9565fefa3..f7131eddf 100644 --- a/data/actionsmap/yunohost.yml +++ b/data/actionsmap/yunohost.yml @@ -941,7 +941,7 @@ backup: action: store_true --space-used: help: Display size used - action: store_true + action: store_false ### backup_repository_add() add: @@ -954,12 +954,12 @@ backup: path: help: Path eventually on another server extra: - pattern: *pattern_backup_repo_path + pattern: *pattern_backup_repository_path -n: full: --name help: Name of the repository extra: - pattern: *pattern_backup_repo_name + pattern: *pattern_backup_repository_name -d: full: --description help: Short description of the repository @@ -969,14 +969,19 @@ backup: -q: full: --quota help: Quota to configure with this repository - --no-encryption: - help: If distant don't encrypt + --e: + full: --encryption + help: Type of encryption ### backup_repository_update() update: action_help: Update a backup repository api: PUT /backup/repository/ arguments: + name: + help: Name of the backup repository to update + extra: + pattern: *pattern_backup_repository_name -d: full: --description help: Short description of the repository @@ -998,7 +1003,7 @@ backup: name: help: Name of the backup repository to remove extra: - pattern: *pattern_backup_repo_name + pattern: *pattern_backup_repository_name ############################# # Monitor # diff --git a/src/yunohost/repository.py b/src/yunohost/repository.py index e0d976a2d..e3e53eb24 100644 --- a/src/yunohost/repository.py +++ b/src/yunohost/repository.py @@ -52,7 +52,7 @@ def backup_repository_list(name): """ pass -def backup_repository_info(name): +def backup_repository_info(name, human_readble=True, space_used=False): """ Show info about a repository @@ -61,7 +61,8 @@ def backup_repository_info(name): """ 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 @@ -70,7 +71,7 @@ def backup_repository_add(name): """ pass -def backup_repository_update(name): +def backup_repository_update(name, description=None, quota=None, password=None): """ Update a backup repository