Overwrite gzip file

This commit is contained in:
ssamson-tis 2017-09-21 14:34:07 +02:00
parent 5e20cfffcc
commit 076c07ff24

View File

@ -94,7 +94,7 @@ class backup_samba4(backup_generic):
# zip the file # zip the file
stats['status']='Zipping' stats['status']='Zipping'
cmd = 'gzip "%s.tisbackup"' % self.db_name cmd = 'gzip -f "%s.tisbackup"' % self.db_name
self.logger.debug('[%s] Compress backup : %s',self.backup_name,cmd) self.logger.debug('[%s] Compress backup : %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)