From 38577171a1247c261516635eb7ee55062832a3c5 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Fri, 28 Sep 2018 08:14:01 +0200 Subject: [PATCH] [IMP]Odoo backup script : add host namespace --- odoo/scripts/backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odoo/scripts/backup.py b/odoo/scripts/backup.py index 31d7e60..4aec262 100644 --- a/odoo/scripts/backup.py +++ b/odoo/scripts/backup.py @@ -17,7 +17,8 @@ def dump(odoo, bakpath, password, dbnames, format_): """ Dumps a database list """ for dbname in dbnames: dumpf = odoo.db.dump(password, dbname, format_) - fpath = '{bakpath}/{date}_{dbname}.{fmt}'.format(bakpath=bakpath, + fpath = '{bakpath}/{date}_{host}_{dbname}.{fmt}'.format(bakpath=bakpath, + host=odoo.host, dbname=dbname, date=datefmt(), fmt=format_)