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

Relax permissions on backup files for export

parent 98d0b651
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -19,14 +19,12 @@ module Backup
 
# create archive
$progress.print "Creating backup archive: #{tar_file} ... "
orig_umask = File.umask(0077)
if Kernel.system('tar', '-cf', tar_file, *backup_contents)
$progress.puts "done".green
else
puts "creating archive #{tar_file} failed".red
abort 'Backup failed'
end
File.umask(orig_umask)
 
upload(tar_file)
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