From 51c6b36f481a2d70fe22e9ac32ba41fde51a5b58 Mon Sep 17 00:00:00 2001 From: Bekir Pehlivan Date: Thu, 14 Dec 2023 16:58:06 +0300 Subject: [PATCH] added --remove-files to tar --- backup/dumper.go | 2 +- config/config.sample.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/dumper.go b/backup/dumper.go index 0709c03..58cda4b 100755 --- a/backup/dumper.go +++ b/backup/dumper.go @@ -158,7 +158,7 @@ func (d *Dumper) dumpSingleDb(db string, dst string) { return } - cmd = exec.Command("tar", "cf", "-", dfp) + cmd = exec.Command("tar", "cf", "-", dfp, "--remove-files") stdout, err := cmd.StdoutPipe() if err != nil { diff --git a/config/config.sample.yml b/config/config.sample.yml index 2f2574f..5e89bdb 100755 --- a/config/config.sample.yml +++ b/config/config.sample.yml @@ -3,7 +3,7 @@ databases: # Eğer boş bırakılırsa tüm veritabanları yedeklenir (if databa - db1 - db2 removeLocal: true -archivePass: "encryptionPassword" +archivePass: encryptionPassword s3: enabled: true region: aws region