summaryrefslogtreecommitdiff
path: root/lib/backup/manager.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add installation type to backup information fileBalasankar "Balu" C2018-10-051-0/+1
|
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Find and mark more Git disk access locationsJacob Vosmaer (GitLab)2018-06-051-3/+3
|
* Fix backup creation and restore for specific Rake tasksStan Hu2018-05-241-24/+31
|
* Move conditional to a separate methodBalasankar "Balu" C2018-01-151-3/+5
|
* List available backups for restoreBalasankar "Balu" C2018-01-151-1/+6
|
* Decrease ABC threshold to 54.28Maxim Rydkin2017-10-221-4/+6
|
* Stub ENV in the backup task spec fileRémy Coutable2017-10-181-39/+39
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Adds EE tag detection to remove_old in gitlab backup.Tiago Botelho2017-09-211-1/+1
|
* Tighten up remove_old regex from gitlab backup manager.32796-tighten-up-remove-old-while-backing-up-gitlabTiago Botelho2017-09-201-1/+1
|
* Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support custom directory in gitlab:backup:create taskMarkus Koller2017-07-271-14/+28
|
* Fix rubocopfix-backup-raketaskAchilleas Pipinellis2017-05-231-1/+0
|
* Add missing regex to backup managerAchilleas Pipinellis2017-05-231-1/+6
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10901/diffs introduced a new naming scheme for backups, but the code which cleans up old backups wasn't updated accordingly. In order to maintain backward compatibility, we need to account for 3 naming schemes.
* Merge branch 'gl-version-backup-file' into 'master' Rémy Coutable2017-04-261-1/+1
|\ | | | | | | | | Add GitLab version to backup file name See merge request !10901
| * Expose GitLab version in backup fileAchilleas Pipinellis2017-04-251-1/+1
| | | | | | | | Instead of doing hacks like http://stackoverflow.com/a/26082612/974710
* | Decrease ABC threshold to 57.08Maxim Rydkin2017-04-261-16/+19
|/
* Add storage class configuration option for Amazon S3 remote backupsJon Keys2017-02-281-1/+2
|
* Don’t exclude some file in lib from rubocopDouwe Maan2017-02-231-13/+13
|
* Fix specsKamil Trzcinski2017-01-311-1/+1
|
* Restore backup correctly when "BACKUP" environment variable is passedrestore-backup-when-env-variable-is-passedAdam Niedzielski2017-01-091-17/+27
|
* Fix Backup::Manager#remove_old25399-backup-task-is-not-working-on-8-15-preSean McGivern2016-12-071-9/+10
|
* Add Human Readable Timestamp to backup tar fileDavid Gerő2016-11-301-7/+11
|
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-111-1/+1
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* Only create the backup directory if it is localStan Hu2016-06-101-3/+18
| | | | Closes #12710
* Replace colorize gem with rainbow.Connor Shea2016-06-031-15/+15
| | | | | | | | | | | | | Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize. The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance. The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product. An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded. Rainbow library: https://github.com/sickill/rainbow Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
* Create the specified remote directory during backuprs-create-remote-backup-folderRobert Speicher2016-05-311-1/+1
| | | | | | | This is idempotent, so there's no harm calling it if the directory already exists. Closes #12710
* Improve after reviewfix-registry-backupsKamil Trzcinski2016-05-241-5/+5
|
* Fix backups if registry is disabledKamil Trzcinski2016-05-231-2/+11
|
* Added backup of container registryKamil Trzcinski2016-05-161-1/+1
|
* Make sure there is a connection before using ActiveRecordbackup-database-timeout-fixJeroen Nijhof2016-02-081-0/+3
|
* 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.