summaryrefslogtreecommitdiff
path: root/lib/backup
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Ensure all refs are restored on a restore from backupsh-restore-all-refs-backupStan Hu2017-09-291-1/+1
| | | | | | | | | To restore all refs from a bundle, we need to use the --mirror option to ensure that all refs are properly restored. Without this, refs such as `refs/merge-requests/X` and `refs/keep-around/Y` would be omitted, which exposed a bug as described in https://gitlab.com/gitlab-org/gitlab-ce/issues/38319#note_41648608. Closes #38352
* 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
|
* Refactor project and storage typesGabriel Mazetto2017-08-221-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>
* Rename ensure_dir_exist -> ensure_storage_path_existGabriel Mazetto2017-08-011-1/+1
|
* Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto2017-08-011-3/+3
|
* Rename path_with_namespace -> disk_path when dealing with the filesystemGabriel Mazetto2017-08-011-2/+2
|
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-3/+3
|
* Protect backups from stale cache for repo existsMichael Kozono2017-07-281-0/+1
|
* Support custom directory in gitlab:backup:create taskMarkus Koller2017-07-271-14/+28
|
* fix typofix/backup-restore-resumeJames Lopez2017-06-071-1/+1
|
* fix wikiJames Lopez2017-06-071-1/+1
|
* refactor code and specJames Lopez2017-06-071-25/+21
|
* fix backup task to ignore errors per projectJames Lopez2017-06-071-26/+29
|
* Fix data inconsistency issue for old artifacts by moving them to a currently ↵Kamil Trzcinski2017-06-011-1/+1
| | | | used path
* 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
|/
* Merge branch 'db-backup-ssl-support' into 'master' Achilleas Pipinellis2017-04-241-5/+21
|\ | | | | | | | | | | | | Database SSL support for backup script. Closes #1440 See merge request !9715
| * Database SSL support for backup script.Guillaume2017-04-051-5/+21
| |
* | Fix custom hooks restoreJacob Vosmaer2017-03-291-1/+3
|/
* Merge branch '28447-hybrid-repository-storages' into 'master' Sean McGivern2017-03-071-2/+3
|\ | | | | | | | | Update storage settings to allow extra values per shard See merge request !9597
| * Update storage settings to allow extra values per shard28447-hybrid-repository-storagesAlejandro Rodríguez2017-03-031-2/+3
| | | | | | | | | | | | | | This will be necessary when adding gitaly settings. This version doesn't make any functional changes, but allows us to include this breaking change in 9.0 and add the needed extra settings in the future with backwards compatibility
* | Merge branch 'backup_storage_class' into 'master' Rémy Coutable2017-03-061-1/+2
|\ \ | | | | | | | | | | | | Add storage class configuration option for Amazon S3 remote backups See merge request !9599
| * | Add storage class configuration option for Amazon S3 remote backupsJon Keys2017-02-281-1/+2
| |/
* | Remove remnants of git annexPawel Chojnacki2017-03-031-3/+2
|/
* Don’t exclude some file in lib from rubocopDouwe Maan2017-02-235-56/+64
|
* # This is a combination of 2 commits.Drew Blessing2017-02-211-1/+16
| | | | | | | | | | | | | | | | | | # This is the 1st commit message: Add `copy` backup strategy to combat file changed errors The backup Rake task used to stream data directly from the live data directory into the backup. Under many circumstances this worked OK. However, really active instances would experience a 'file changed as we read it' error - especially with data like the registry. This now copies the data first, then compresses it. It will take a bit more disk space while the backup is in progress, but it's a necessary thing. # The commit message #2 will be skipped: # Add env var
* Use Namespace#full_path instead of Namespace#pathDmitriy Zaporozhets2017-02-141-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix specsKamil Trzcinski2017-01-311-1/+1
|
* Add GitLab PagesKamil Trzcinski2017-01-311-0/+13
| | | | | | | | | | | | | | | | - The pages are created when build artifacts for `pages` job are uploaded - Pages serve the content under: http://group.pages.domain.com/project - Pages can be used to serve the group page, special project named as host: group.pages.domain.com - User can provide own 403 and 404 error pages by creating 403.html and 404.html in group page project - Pages can be explicitly removed from the project by clicking Remove Pages in Project Settings - The size of pages is limited by Application Setting: max pages size, which limits the maximum size of unpacked archive (default: 100MB) - The public/ is extracted from artifacts and content is served as static pages - Pages asynchronous worker use `dd` to limit the unpacked tar size - Pages needs to be explicitly enabled and domain needs to be specified in gitlab.yml - Pages are part of backups - Pages notify the deployment status using Commit Status API - Pages use a new sidekiq queue: pages - Pages use a separate nginx config which needs to be explicitly added
* 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
|
* Backups do not fail anymore when using tar on annex and custom_hookstiagonbotelho2016-10-271-16/+76
| | | | only.
* lib/backup: fix broken permissions when creating repo dirDirk Hörner2016-08-301-1/+1
| | | | | | This commit fixes a typo where the mode argument to FileUtils.mkdir() would be passed in decimal rather than octal format, yielding bad permissions.
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-113-6/+6
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* Fix backup restorefix-backup-restoreStan Hu2016-07-251-2/+2
| | | | | | Set permissions of backup dir to g+s Closes #20188
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-12/+14
|
* Only create the backup directory if it is localStan Hu2016-06-101-3/+18
| | | | Closes #12710
* Replace colorize gem with rainbow.Connor Shea2016-06-033-30/+30
| | | | | | | | | | | | | 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-162-1/+14
|