diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-10-06 15:10:13 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-10-06 15:10:13 +0200 |
commit | 7b71727c562b6f6337a180ae136be94bf0f6ed31 (patch) | |
tree | 4ae255e2b88a48e0454e13461db2ebd9208d28bb /lib/backup/files.rb | |
parent | 90ddf140b9390647002771572d0375da0bb9dfa4 (diff) | |
download | gitlab-ce-7b71727c562b6f6337a180ae136be94bf0f6ed31.tar.gz |
Remove old "files" tarball explicitly
Diffstat (limited to 'lib/backup/files.rb')
-rw-r--r-- | lib/backup/files.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/backup/files.rb b/lib/backup/files.rb index d0a6e8f27be..1b08e3324d7 100644 --- a/lib/backup/files.rb +++ b/lib/backup/files.rb @@ -15,6 +15,7 @@ module Backup # Copy files from public/files to backup/files def dump FileUtils.mkdir_p(Gitlab.config.backup.path) + FileUtils.rm_f(backup_tarball) run_pipeline!([%W(tar -C #{files_parent_dir} -cf - #{name}), %W(gzip -c -1)], out: [backup_tarball, 'w', 0600]) end |