Commit Graph

80 Commits

Author SHA1 Message Date
GitLab Bot 077b0a79d5 Add latest changes from gitlab-org/gitlab@master 2022-10-03 12:08:27 +00:00
GitLab Bot dda49284fc Add latest changes from gitlab-org/gitlab@master 2022-08-03 09:12:13 +00:00
GitLab Bot f5c9eb81b0 Add latest changes from gitlab-org/gitlab@master 2022-02-16 03:18:24 +00:00
GitLab Bot a8281ac434 Add latest changes from gitlab-org/gitlab@master 2022-01-11 15:15:55 +00:00
GitLab Bot f31ef3fd55 Add latest changes from gitlab-org/gitlab@master 2022-01-11 06:10:58 +00:00
GitLab Bot c38fb401d2 Add latest changes from gitlab-org/gitlab@master 2022-01-06 18:13:45 +00:00
GitLab Bot dc93436903 Add latest changes from gitlab-org/gitlab@master 2021-12-22 03:15:20 +00:00
GitLab Bot b119503b70 Add latest changes from gitlab-org/gitlab@master 2021-09-14 15:12:05 +00:00
GitLab Bot ceb0c326ae Add latest changes from gitlab-org/gitlab@master 2021-09-02 03:09:04 +00:00
GitLab Bot 7134e029c5 Add latest changes from gitlab-org/gitlab@master 2021-08-13 15:11:15 +00:00
GitLab Bot 0daaf2c2ba Add latest changes from gitlab-org/gitlab@master 2021-07-30 15:10:25 +00:00
GitLab Bot 9e16447c7c Add latest changes from gitlab-org/gitlab@master 2021-07-28 06:09:29 +00:00
GitLab Bot 7a20b3758e Add latest changes from gitlab-org/gitlab@master 2021-07-27 12:10:54 +00:00
GitLab Bot dd1c093e28 Add latest changes from gitlab-org/gitlab@master 2021-07-12 18:09:09 +00:00
GitLab Bot e5f2a04e9d Add latest changes from gitlab-org/gitlab@master 2021-06-29 12:08:48 +00:00
GitLab Bot e4632f4c63 Add latest changes from gitlab-org/gitlab@master 2021-06-28 18:08:39 +00:00
GitLab Bot 03c5d7f2c1 Add latest changes from gitlab-org/gitlab@master 2021-06-15 03:10:34 +00:00
GitLab Bot 64f7eb2b37 Add latest changes from gitlab-org/gitlab@master 2021-02-05 12:09:31 +00:00
GitLab Bot fe53f9c358 Add latest changes from gitlab-org/gitlab@master 2020-09-22 00:09:59 +00:00
GitLab Bot 592223823c Add latest changes from gitlab-org/gitlab@master 2020-09-03 18:08:29 +00:00
GitLab Bot 4e06ca9e7d Add latest changes from gitlab-org/gitlab@master 2020-09-02 18:10:40 +00:00
GitLab Bot 729eabcb41 Add latest changes from gitlab-org/gitlab@master 2020-08-31 12:10:39 +00:00
GitLab Bot 3827baae07 Add latest changes from gitlab-org/gitlab@master 2020-08-13 00:10:06 +00:00
GitLab Bot 77237c5a6b Add latest changes from gitlab-org/gitlab@master 2020-03-05 00:07:49 +00:00
GitLab Bot 0f8c2334f0 Add latest changes from gitlab-org/gitlab@master 2020-01-23 06:08:32 +00:00
Stan Hu ad3abd1d3a Silence backup warnings when CRON=1 in use
If CRON=1 is in use, we shouldn't generate any output or admins may be
notified via e-mail about unnecessary warnings.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63703
2019-06-25 06:30:51 -07:00
Cindy Pallares deb5276f8b
Add warning that gitlab-secrets isn't included
Many customers forget to include the gitlab-secrets.json file. This adds
a warning that both gitlab-secrets.json and gitlab.rb are not included
in the backup.
2019-05-08 12:39:04 -05:00
Yorick Peterse bb873b1e3b
Make the backup Rake task the same as in EE
EE uses single quotes for the changed line, whereas CE was using double
quotes. This commit ensures both repositories use the same kind of
quotes.
2019-02-28 15:03:10 +01:00
Will Chandler cc41a77183 Add timestamps to gitlab-rake gitlab:backup:restore
Adds a new method 'puts_time' that prepends the time of a
message when printing it.  All instances of 'progress.puts'
in the gitlab:backup:restore tasks are replaced with puts_time.
Example output:
  2018-06-03 16:33:25 -0400 -- Restoring uploads ..
Closes #46448
2018-06-14 23:03:15 -04:00
Stan Hu e6fca03bbd Fix backup creation and restore for specific Rake tasks 2018-05-24 14:58:25 +00:00
Lin Jen-Shin 8e87ecbf30 Eliminate the warnings from task helpers 2018-01-26 19:42:48 +08:00
🙈 jacopo beschi 🙉 729f05f0e3 Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
digitalMoksha 734fab8a6b show better message when deciding not to continue 2017-11-07 16:10:57 +01:00
digitalMoksha 52bacf96b1 Make warning message more explicit 2017-11-07 15:29:04 +01:00
Connor Shea b39421bded Fixed backup.rake colorize method following Pages -> CE
Cherry-picked 'Remove colorize methods that weren't in CE.'
2017-02-07 14:43:32 +00:00
Kamil Trzcinski 120f9abaa1 Add GitLab Pages
- 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
2017-01-31 22:50:39 +00:00
Valery Sizov 0c0caede85 Fix: Backup restore doesn't clear cache 2016-10-20 17:33:12 +03:00
Drew Blessing 3ce174c370 Fix restore warning message 2016-06-28 15:54:40 -05:00
Connor Shea 903946c78a
Replace colorize gem with rainbow.
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
2016-06-03 10:37:09 -06:00
Kamil Trzcinski 12bd781031 Fix backups if registry is disabled 2016-05-23 14:18:39 -05:00
Kamil Trzcinski 143cd58c39 Added backup of container registry 2016-05-16 17:25:38 -05:00
Drew Blessing 5516b6c47f Reload the schema before restoring a database backup 2016-03-21 21:16:34 -05:00
Marin Jankovski 3cc2b48a82 Backup LFS objects same as any upload. 2015-11-19 10:43:45 +01:00
Kamil Trzcinski d0e3e823a2 Implement Build Artifacts
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Kamil Trzcinski ed18e04bb3 Cleanup CI backup => migrate with GitLab 2015-09-15 20:14:21 +02:00
Dmitriy Zaporozhets b8f12d1917 Replace GITLAB with GitLab in rake task descriptions 2015-06-23 16:52:40 +02:00
Valery Sizov 67c83489ca ability to skip some items in backup 2015-04-02 15:37:50 +03:00
Jacob Vosmaer 458f8c1f80 Explain why we create a StringIO 2014-11-20 15:54:39 +01:00
Jacob Vosmaer 7c54c63ac1 Add CRON=1 backup setting for quiet backups 2014-11-20 15:46:04 +01:00
Dmitriy Zaporozhets 02e859a234 move backup logic to lib. Fixed removing outdated backups 2013-08-05 12:26:33 +03:00