File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 7
7
{
8
8
"name" : "Database Auto-Backup" ,
9
9
"summary" : "Backups database" ,
10
- "version" : "8.0.1.0.0 " ,
10
+ "version" : "8.0.1.0.1 " ,
11
11
"author" : (
12
12
"VanRoey.be - Yenthe Van Ginneken, Agile Business Group,"
13
13
" Grupo ESOC Ingenier??a de Servicios,"
Original file line number Diff line number Diff line change 6
6
7
7
import os
8
8
import shutil
9
- import tempfile
10
9
import traceback
11
10
from contextlib import contextmanager
12
11
from datetime import datetime , timedelta
@@ -165,8 +164,7 @@ def action_backup(self):
165
164
if backup :
166
165
cached = open (backup )
167
166
else :
168
- cached = tempfile .TemporaryFile ()
169
- db .dump_db (self .env .cr .dbname , cached )
167
+ cached = db .dump_db (self .env .cr .dbname , None )
170
168
171
169
with cached :
172
170
for rec in sftp :
@@ -274,7 +272,7 @@ def sftp_connection(self):
274
272
"Trying to connect to sftp://%(username)s@%(host)s:%(port)d" ,
275
273
extra = params )
276
274
if self .sftp_private_key :
277
- params ["private_key" ] = self .stfpprivatekey
275
+ params ["private_key" ] = self .sftp_private_key
278
276
if self .sftp_password :
279
277
params ["private_key_pass" ] = self .sftp_password
280
278
else :
You can’t perform that action at this time.
0 commit comments