Commit 7b71727c authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove old "files" tarball explicitly

parent 90ddf140
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment