Skip to content
Snippets Groups Projects
Commit 16a6ea2d authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq

parents d77f333f 7ed8b76f
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
@@ -17,7 +17,7 @@ module Backup
Loading
@@ -17,7 +17,7 @@ module Backup
file << s.to_yaml.gsub(/^---\n/,'') file << s.to_yaml.gsub(/^---\n/,'')
end end
   
FileUtils.chmod_R(0700, %w{db uploads repositories}) FileUtils.chmod(0700, %w{db uploads repositories})
   
# create archive # create archive
$progress.print "Creating backup archive: #{tar_file} ... " $progress.print "Creating backup archive: #{tar_file} ... "
Loading
Loading
Loading
@@ -87,7 +87,7 @@ describe 'gitlab:app namespace rake task' do
Loading
@@ -87,7 +87,7 @@ describe 'gitlab:app namespace rake task' do
expect(tar_contents).to match('db/') expect(tar_contents).to match('db/')
expect(tar_contents).to match('uploads/') expect(tar_contents).to match('uploads/')
expect(tar_contents).to match('repositories/') expect(tar_contents).to match('repositories/')
expect(tar_contents).not_to match(/^.{4,9}[rwx]/) expect(tar_contents).not_to match(/^.{4,9}[rwx].*(db|uploads|repositories)\/$/)
end end
   
it 'should delete temp directories' do it 'should delete temp directories' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment