Skip to content
Snippets Groups Projects
Commit 7b71727c authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Remove old "files" tarball explicitly

parent 90ddf140
No related branches found
No related tags found
1 merge request!1520Reduce disk IO and space usage during backups
Pipeline #
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment