Browse Source

FIX sftp unlink path (#767)

pull/1158/head
Lorenzo Battistini 8 years ago
committed by Andrea
parent
commit
b22e9d7ae2
  1. 2
      auto_backup/__manifest__.py
  2. 2
      auto_backup/models/db_backup.py

2
auto_backup/__manifest__.py

@ -7,7 +7,7 @@
{ {
"name": "Database Auto-Backup", "name": "Database Auto-Backup",
"summary": "Backups database", "summary": "Backups database",
"version": "10.0.1.0.1",
"version": "10.0.1.0.2",
"author": ( "author": (
"Yenthe Van Ginneken, " "Yenthe Van Ginneken, "
"Agile Business Group, " "Agile Business Group, "

2
auto_backup/models/db_backup.py

@ -232,7 +232,7 @@ class DbBackup(models.Model):
for name in remote.listdir(rec.folder): for name in remote.listdir(rec.folder):
if (name.endswith(".dump.zip") and if (name.endswith(".dump.zip") and
os.path.basename(name) < oldest): os.path.basename(name) < oldest):
remote.unlink(name)
remote.unlink('%s/%s' % (rec.folder, name))
@api.multi @api.multi
@contextmanager @contextmanager

Loading…
Cancel
Save