From ef53ea53d8d0ad65b649ab54e6d95da97c6107ce Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Sat, 18 Mar 2017 01:49:56 +0100 Subject: [PATCH] [FIX] auto_backup: SFTP cleanup (#768) --- auto_backup/__openerp__.py | 2 +- auto_backup/models/db_backup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_backup/__openerp__.py b/auto_backup/__openerp__.py index a9ffa2aaa..a56447f32 100644 --- a/auto_backup/__openerp__.py +++ b/auto_backup/__openerp__.py @@ -7,7 +7,7 @@ { "name": "Database Auto-Backup", "summary": "Backups database", - "version": "9.0.1.1.0", + "version": "9.0.1.1.1", "author": ( "VanRoey.be - Yenthe Van Ginneken, Agile Business Group," " Grupo ESOC IngenierĂ­a de Servicios," diff --git a/auto_backup/models/db_backup.py b/auto_backup/models/db_backup.py index f5a5ebf83..cdd20bb1b 100644 --- a/auto_backup/models/db_backup.py +++ b/auto_backup/models/db_backup.py @@ -232,7 +232,7 @@ class DbBackup(models.Model): for name in remote.listdir(rec.folder): if (name.endswith(".dump.zip") and os.path.basename(name) < oldest): - remote.unlink(name) + remote.unlink('%s/%s' % (rec.folder, name)) @api.multi @contextmanager