mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Set default backup name to a more readable format
This commit is contained in:
parent
a51e395bca
commit
c16203bd2a
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ def backup_create(name=None, description=None, output_directory=None,
|
|||
# Validate and define backup name
|
||||
timestamp = int(time.time())
|
||||
if not name:
|
||||
name = str(timestamp)
|
||||
name = time.strftime('%Y%m%d-%H%M%S')
|
||||
if name in backup_list()['archives']:
|
||||
raise MoulinetteError(errno.EINVAL,
|
||||
m18n.n('backup_archive_name_exists'))
|
||||
|
|
Loading…
Add table
Reference in a new issue