Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
added --remove-files to tar
Browse files Browse the repository at this point in the history
  • Loading branch information
LobbyLobster committed Dec 14, 2023
1 parent 20a738c commit 51c6b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backup/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion config/config.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51c6b36

Please sign in to comment.