Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-qa-sandbox-group
qa-test-2019-05-06-03-38-42-40f225278db2df81
add-member-project-38ac0d05ff9a6e41
Commits
f5ef24b1
Commit
f5ef24b1
authored
Sep 22, 2015
by
Jacob Vosmaer
Browse files
Relax permissions on backup files for export
parent
98d0b651
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/backup/manager.rb
View file @
f5ef24b1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment