Commit Graph

61 Commits

Author SHA1 Message Date
GitLab Bot 5e9a171716 Add latest changes from gitlab-org/gitlab@master 2023-12-15 06:13:20 +00:00
GitLab Bot c3ccd2fdf1 Add latest changes from gitlab-org/gitlab@master 2023-11-14 18:09:21 +00:00
GitLab Bot 2f9c0a9f2c Add latest changes from gitlab-org/gitlab@master 2023-10-11 18:11:13 +00:00
GitLab Bot bf53a3fd78 Add latest changes from gitlab-org/gitlab@master 2023-09-19 03:09:45 +00:00
GitLab Bot a60e53c767 Add latest changes from gitlab-org/gitlab@master 2023-09-12 21:10:52 +00:00
GitLab Bot 5849e597a0 Add latest changes from gitlab-org/gitlab@master 2023-06-27 06:08:04 +00:00
GitLab Bot da23c5d563 Add latest changes from gitlab-org/gitlab@master 2023-04-20 15:20:09 +00:00
GitLab Bot 669a1c319d Add latest changes from gitlab-org/gitlab@master 2023-03-23 06:16:39 +00:00
GitLab Bot 3cda3d43ae Add latest changes from gitlab-org/gitlab@master 2023-02-03 15:07:39 +00:00
GitLab Bot dec42ba662 Add latest changes from gitlab-org/gitlab@master 2023-01-19 09:07:54 +00:00
GitLab Bot 5f66b79676 Add latest changes from gitlab-org/gitlab@master 2022-12-22 21:08:40 +00:00
GitLab Bot aaf158bcb5 Add latest changes from gitlab-org/gitlab@master 2022-12-22 15:09:14 +00:00
GitLab Bot dda49284fc Add latest changes from gitlab-org/gitlab@master 2022-08-03 09:12:13 +00:00
GitLab Bot 81c0f29ad9 Add latest changes from gitlab-org/gitlab@master 2022-04-08 21:09:52 +00:00
GitLab Bot 5820d448c1 Add latest changes from gitlab-org/gitlab@master 2022-03-31 12:08:17 +00:00
GitLab Bot c16d7a4f01 Add latest changes from gitlab-org/gitlab@master 2022-03-15 03:08:45 +00:00
GitLab Bot f5c9eb81b0 Add latest changes from gitlab-org/gitlab@master 2022-02-16 03:18:24 +00:00
GitLab Bot c38fb401d2 Add latest changes from gitlab-org/gitlab@master 2022-01-06 18:13:45 +00:00
GitLab Bot 1072f96e34 Add latest changes from gitlab-org/gitlab@master 2021-07-19 12:10:08 +00:00
GitLab Bot 1613500bf7 Add latest changes from gitlab-org/gitlab@master 2021-07-09 09:09:53 +00:00
GitLab Bot f3b9e205bb Add latest changes from gitlab-org/gitlab@master 2020-10-27 18:08:59 +00:00
GitLab Bot b355535770 Add latest changes from gitlab-org/gitlab@master 2020-09-04 18:08:48 +00:00
GitLab Bot 692f4b734f Add latest changes from gitlab-org/gitlab@master 2020-09-03 21:08:18 +00:00
GitLab Bot 592223823c Add latest changes from gitlab-org/gitlab@master 2020-09-03 18:08:29 +00:00
GitLab Bot 5b8f2c8a24 Add latest changes from gitlab-org/gitlab@master 2020-09-01 21:10:21 +00:00
GitLab Bot 8846ca0ed6 Add latest changes from gitlab-org/gitlab@master 2020-08-31 18:10:43 +00:00
GitLab Bot 5d6119a1a4 Add latest changes from gitlab-org/gitlab@master 2020-06-25 00:09:26 +00:00
Nick Thomas 4aa76dddec
Remove dead MySQL code
None of this code can be reached any more, so it can all be removed
2019-07-23 16:53:03 +01:00
Frederic Van Espen 935b698384 introduce optional rsyncable flag 2019-03-07 09:38:14 +01:00
Frederic Van Espen e8419fb5bb set the --rsyncable option for gzip 2018-12-26 15:35:20 +01:00
gfyoung 3836d69119 Enable frozen string in lib/api and lib/backup
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
2018-09-29 21:04:50 -07:00
Jacob Vosmaer (GitLab) a0808df0b6 Find and mark more Git disk access locations 2018-06-05 15:51:14 +00:00
Stan Hu e6fca03bbd Fix backup creation and restore for specific Rake tasks 2018-05-24 14:58:25 +00:00
🙈 jacopo beschi 🙉 729f05f0e3 Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
Guillaume c67271cd78 Database SSL support for backup script. 2017-04-05 18:10:17 +02:00
Douwe Maan 87c9df29ce Don’t exclude some file in lib from rubocop 2017-02-23 09:32:42 -06: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
Jacob Vosmaer 901f544578 Remove superfluous mkdir -p 2015-10-06 15:38:21 +02:00
Jacob Vosmaer e789644783 Keep old path: db/database.sql.gz
Documentation elsewhere refers to this internal path, let's keep
it.
2015-10-06 15:21:15 +02:00
Jacob Vosmaer 90ddf140b9 Reduce disk IO during SQL backup
By using light gzip compression we can save a lot of disk IO during
the backup.
2015-10-06 15:06:15 +02:00
Valery Sizov d7242054ba add pg_schema to backup config 2015-09-18 16:29:13 +03:00
Jacob Vosmaer 4cd06867c7 Do not delete the SQL dump too early
The change in baa157926d broke backup
restore fucnctionality. This would not lead to data loss, but it
prevented the restore script from working. This bug exists only in
7.14.0 release candidate versions, not in 7.13.

Reported in https://github.com/gitlabhq/gitlabhq/issues/9571 .
2015-08-21 16:12:46 +02:00
Ted Strzalkowski 7430e7b5fc Workaround the warnings emitted by MySQL 5.6 regarding password on the
command line.
2015-08-12 07:51:24 -07:00
Jacob Vosmaer baa157926d Stricter mkdir's in 'rake gitlab:backup:create' 2015-07-30 10:17:34 +02:00
Jacob Vosmaer c5aae30773 Set internal backup directory modes on create
This sidesteps problems with running 'chmod' on some CIFS mounts.
2015-07-29 11:18:55 +02:00
Jacob Vosmaer 346b074979 Don't stop if database.sql.gz already exists
The existing behavior of the backups is to overwrite whatever data
was still there in the scratch directories. This broke when we added
a 'gzip' step because 'gzip database.sql' will fail if 'database.sql.gz'
already exists. Doing 'rm -f database.sql.gz' before the 'gzip'
avoids this failure.
2015-07-21 10:37:27 +02:00
Dmitriy Zaporozhets b9452d7bcd Merge branch 'improve-postgres-restore-cleaning' into 'master'
Use native Postgres database cleaning during backup restore

We were using hacks to drop tables etc during a Postgres backup
restore. With this change, we let pg_dump insert the DROP TABLE
statements it needs at the start of the SQL dump.

See merge request !1891
2015-07-07 23:02:48 +00:00
Jacob Vosmaer 90ab5a59bb Use native Postgres database cleaning during backup restore
We were using hacks to drop tables etc during a Postgres backup
restore. With this change, we let pg_dump insert the DROP TABLE
statements it needs at the start of the SQL dump.
2015-07-07 15:34:06 +02:00
Kamil Trzcinski 69c659ebd3 Compress database backup 2015-07-06 17:14:17 +02:00
Jacob Vosmaer 7c54c63ac1 Add CRON=1 backup setting for quiet backups 2014-11-20 15:46:04 +01:00