typo in gzipped pgsql dump filename
This commit is contained in:
parent
769e61b78a
commit
e701575525
@ -103,7 +103,7 @@ class backup_pgsql(backup_generic):
|
|||||||
|
|
||||||
# zip the file
|
# zip the file
|
||||||
cmd = 'gzip %(tmp_dir)s/%(db_name)s-%(backup_start_date)s.sql' % params
|
cmd = 'gzip %(tmp_dir)s/%(db_name)s-%(backup_start_date)s.sql' % params
|
||||||
|
|
||||||
self.logger.debug('[%s] %s ',self.backup_name,cmd)
|
self.logger.debug('[%s] %s ',self.backup_name,cmd)
|
||||||
if not self.dry_run:
|
if not self.dry_run:
|
||||||
(error_code,output) = ssh_exec(cmd,ssh=self.ssh)
|
(error_code,output) = ssh_exec(cmd,ssh=self.ssh)
|
||||||
@ -112,7 +112,7 @@ class backup_pgsql(backup_generic):
|
|||||||
raise Exception('Aborting, Not null exit code (%i) for "%s"' % (error_code,cmd))
|
raise Exception('Aborting, Not null exit code (%i) for "%s"' % (error_code,cmd))
|
||||||
|
|
||||||
# get the file
|
# get the file
|
||||||
filepath = '%(tmp_dir)s/%(db_name)s-%(backup_start_date)s.sql' % params
|
filepath = '%(tmp_dir)s/%(db_name)s-%(backup_start_date)s.sql.gz' % params
|
||||||
localpath = '%(dest_dir)s/%(db_name)s-%(backup_start_date)s.sql.gz' % params
|
localpath = '%(dest_dir)s/%(db_name)s-%(backup_start_date)s.sql.gz' % params
|
||||||
self.logger.debug('[%s] get the file using sftp from "%s" to "%s" ',self.backup_name,filepath,localpath)
|
self.logger.debug('[%s] get the file using sftp from "%s" to "%s" ',self.backup_name,filepath,localpath)
|
||||||
if not self.dry_run:
|
if not self.dry_run:
|
||||||
|
Loading…
Reference in New Issue
Block a user