summaryrefslogtreecommitdiff
path: root/lib/backup
Commit message (Collapse)AuthorAgeFilesLines
* port of 594e6a0a625^..f74c90f68c6Micaël Bergeron2018-02-011-1/+1
|
* Merge branch 'print-list-of-available-backups' into 'master'Douwe Maan2018-01-161-1/+8
|\ | | | | | | | | List backups avilable for restore See merge request gitlab-org/gitlab-ce!16465
| * Move conditional to a separate methodBalasankar "Balu" C2018-01-151-3/+5
| |
| * List available backups for restoreBalasankar "Balu" C2018-01-151-1/+6
| |
* | Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-112-0/+2
| |
* | Ignore "lost+found" folder during backup on a volumejulien MILLAU2017-12-201-3/+3
|/
* Remove Rugged::Repository#empty?Zeger-Jan van de Weg2017-12-071-6/+3
|
* Rename artifacts_* to legacy_artifacts_*Kamil Trzcinski2017-12-031-1/+1
|
* Fix dumping hashed storage based repositoryGabriel Mazetto2017-11-151-8/+16
|
* 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.