From 076c07ff24e7c7e834354305a3ec6581d8c6b558 Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Thu, 21 Sep 2017 14:34:07 +0200 Subject: [PATCH] Overwrite gzip file --- libtisbackup/backup_samba4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtisbackup/backup_samba4.py b/libtisbackup/backup_samba4.py index 5ad4546..c94118e 100644 --- a/libtisbackup/backup_samba4.py +++ b/libtisbackup/backup_samba4.py @@ -94,7 +94,7 @@ class backup_samba4(backup_generic): # zip the file 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) if not self.dry_run: (error_code,output) = ssh_exec(cmd,ssh=self.ssh)