gitlab-org--gitlab-foss/lib/backup
Dmitriy Zaporozhets aadd38dbb9 Merge branch 'backup-permissions' into 'master'
Change permissions on backup files - #2

Use more restrictive permissions for backup tar files and for the db, uploads, and repositories directories inside the tar files.  See #1894.  Now the backup task recursively `chmod`s the `db/`, `uploads/`, and `repositories/` folders with 0700 permissions, and the tar file is created as 0600.

This is a followup to !1703, which was reverted because it broke Rspec tests.  The test failures were due to the rake task changing directories and not changing back, which I fixed with this commit.

cc @sytse

See merge request !1716
2015-03-21 23:50:20 +00:00
..
database.rb Add CRON=1 backup setting for quiet backups 2014-11-20 15:46:04 +01:00
manager.rb Call chdir() with a block 2015-03-19 20:30:19 -06:00
repository.rb backup repo with tar instead of git bundle 2015-03-19 14:36:02 +02:00
uploads.rb Revert "Fix broken access control and refactor avatar upload" 2015-02-19 08:57:35 -08:00