From c16203bd2a0e2e4fae1cd9b474fea62ba9ea91a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Mon, 5 Oct 2015 17:49:07 +0200 Subject: [PATCH] [enh] Set default backup name to a more readable format --- lib/yunohost/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yunohost/backup.py b/lib/yunohost/backup.py index 30911e8fc..aa74b28a8 100644 --- a/lib/yunohost/backup.py +++ b/lib/yunohost/backup.py @@ -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'))