summaryrefslogtreecommitdiff
path: root/lib/backup/manager.rb
Commit message (Collapse)AuthorAgeFilesLines
* Backup LFS objects same as any upload.Marin Jankovski2015-11-191-1/+1
|
* USe reject.check_if_it_should_be_archived_in_backupMarin Jankovski2015-11-181-1/+1
|
* Check which folders and archives should be packed before passing to tar command.Marin Jankovski2015-11-181-8/+6
|
* Implement Build ArtifactsKamil Trzcinski2015-11-101-1/+1
| | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* Keep old path: db/database.sql.gzJacob Vosmaer2015-10-061-2/+2
| | | | | Documentation elsewhere refers to this internal path, let's keep it.
* Reduce disk IO during SQL backupJacob Vosmaer2015-10-061-2/+2
| | | | | By using light gzip compression we can save a lot of disk IO during the backup.
* Use tar for intermediate backup storageJacob Vosmaer2015-10-061-2/+2
| | | | | | | During the backup we create an intermediate copy of two directories: builds and uploads. Instead of creating many small files with 'cp -r', we now use tar (and fast gzip) to create single intermediate files. This saves on disk IO and disk space while creating a backup.
* Add support for AWS S3 Server-Side Encryption supportPaul Beattie2015-09-251-3/+4
| | | | | | | This adds support for AWS S3 SSE with S3 managed keys, this means the data is encrypted at rest and the encryption is handled transparently to the end user as well as in the AWS Console. This is optional and not required to make S3 uploads work.
* Fix backup testsKamil Trzcinski2015-09-161-1/+1
|
* Merge branch 'master' of github.com:gitlabhq/gitlabhqDmitriy Zaporozhets2015-08-031-2/+0
|\
| * Set internal backup directory modes on createJacob Vosmaer2015-07-291-2/+0
| | | | | | | | This sidesteps problems with running 'chmod' on some CIFS mounts.
* | Allow custom backup archive permissionsJacob Vosmaer2015-07-061-3/+3
|/ | | | | This change helps system administrators who want to replicate GitLab backup files without needing root permissions.
* use gitlab not gitlabciJeroen Nijhof2015-06-091-1/+1
|
* update fog to 1.25.0 and add multipart upload supportJeroen Nijhof2015-06-091-1/+2
|
* ability to skip some items in backupbackup_skip_optionValery Sizov2015-04-021-6/+36
|
* Don't use chmod_R for backup tarsVinnie Okada2015-03-281-1/+1
| | | | | When creating backup tar files, only change permissions on the `db`, `uploads`, and `repositories` directories, not their contents.
* Change directory when removing old backupsVinnie Okada2015-03-241-7/+8
|
* Call chdir() with a blockVinnie Okada2015-03-191-18/+17
|
* Change permissions on backup filesVinnie Okada2015-03-171-5/+13
| | | | | Use more restrictive permissions for backup tar files and for the db, uploads, and repositories directories inside the tar files.
* Revert "Merge branch 'backup-permissions' into 'master'"Dmitriy Zaporozhets2015-03-161-4/+0
| | | | | This reverts commit c42262b43b009af990e5769840391862d64a1c2d, reversing changes made to c6586b1283a94c8f08bc669f4d8a9384b263073e.
* Change permissions on backup filesVinnie Okada2015-03-151-0/+4
| | | | | Use more restrictive permissions for backup tar files and for the db, uploads, and repositories directories inside the tar files.
* Revert "Fix broken access control and refactor avatar upload"Dmitriy Zaporozhets2015-02-191-1/+1
| | | | This reverts commit 7d5f86f6cbd187e75a6ba164ad6bfd036977dd07.
* Fix broken access control and refactor avatar uploadHannes Rosenögger2015-02-161-1/+1
| | | | | | | | | | | This commit moves the note folder from /public/uploads/note to /uploads/note and changes the uploader accordingly. Now it's no longer possible to avoid the access control by modifing the url. The Avatar upload has been refactored to use an own uploader as well to cleanly seperate the two upload types.
* Add CRON=1 backup setting for quiet backupsJacob Vosmaer2014-11-201-16/+16
|
* Fail harder in the backup scriptJacob Vosmaer2014-10-011-0/+3
| | | | | This change also shows the output of failed Git commands during the backup.
* Add backup upload support to the rake taskJacob Vosmaer2014-09-291-2/+24
|
* Apply the locale encoding to `tar --version`Jacob Vosmaer2014-05-081-1/+1
| | | | | Fixes a bug with non-UTF8 locales introduced by 2b816075dc71dfe8f6f9e5349fdff7f03ad9dad0.
* Replace backticks with Gitlab::PopenJacob Vosmaer2014-03-031-1/+6
|
* Use Gitlab::VERSION to version backupsJacob Vosmaer2014-02-271-16/+10
| | | | | | | | | Previous to this commit, backups were tied to the git revision (SHA1) of the app at the time the backup:create command was invoked. If the SHA1 at the time of restore was different, the script would refuse to restore the backup. This commit loosens this tie so that the backup script only complains if the value of the Gitlab::VERSION constant is different between the time of backup and the time of restore.
* Remove duplication in Backup::ManagerJacob Vosmaer2013-11-061-2/+4
|
* Remove Bourne shell from backup codeJacob Vosmaer2013-11-061-4/+4
|
* move backup logic to lib. Fixed removing outdated backupsDmitriy Zaporozhets2013-08-051-0/+106