mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[wip] Add args and disable space used by default
This commit is contained in:
parent
74efa794f8
commit
621bffbfbe
2 changed files with 15 additions and 9 deletions
|
@ -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/<name>
|
||||
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 #
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue