GitLab Bot
7134e029c5
Add latest changes from gitlab-org/gitlab@master
2021-08-13 15:11:15 +00:00
GitLab Bot
ad7214cbd7
Add latest changes from gitlab-org/gitlab@master
2021-07-30 03:08:43 +00:00
GitLab Bot
e5e0589e09
Add latest changes from gitlab-org/gitlab@master
2021-04-26 12:09:44 +00:00
GitLab Bot
b296ffa543
Add latest changes from gitlab-org/gitlab@master
2020-09-09 21:08:33 +00:00
GitLab Bot
a1aeaba23e
Add latest changes from gitlab-org/gitlab@master
2020-09-03 09:08:20 +00:00
GitLab Bot
77237c5a6b
Add latest changes from gitlab-org/gitlab@master
2020-03-05 00:07:49 +00:00
GitLab Bot
e4ea43b2b8
Add latest changes from gitlab-org/gitlab@master
2020-01-27 21:08:47 +00:00
GitLab Bot
96f3246b9c
Add latest changes from gitlab-org/gitlab@master
2019-11-21 00:06:02 +00:00
GitLab Bot
c792263edf
Add latest changes from gitlab-org/gitlab@master
2019-09-23 18:06:14 +00:00
Dinesh Panda
736b5908da
Avoid calling freeze on already frozen strings in lib
2019-09-10 08:11:43 +00:00
Frederic Van Espen
31dfc31aaa
Merge branch 'master' into incremental-backups
2019-03-07 11:14:27 +01:00
Pepijn Van Eeckhoudt
1b3ffdf250
Add SSE-C key configuration option for Amazon S3 remote backups
2019-01-09 16:39:20 +00:00
Frederic Van Espen
3bb3f7ddd0
fix code style
2018-12-27 13:43:45 +01:00
Frederic Van Espen
7a58eb2e16
Allow to override part of the backup filename
2018-12-26 15:33:11 +01:00
Michael Kozono
d2d85c31fe
Avoid extra storage bucket perm and query
...
Specifically, the `ListAllMyBuckets` permission.
This works if you know the directory exists.
See more:
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23981
* https://stackoverflow.com/a/12288581/1992201
2018-12-21 10:34:05 -08:00
gfyoung
c858f70d07
Enable frozen string for lib/gitlab/*.rb
2018-10-22 07:00:50 +00:00
Balasankar "Balu" C
91ef6989d1
Add installation type to backup information file
2018-10-05 19:34:22 +05:30
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
Balasankar "Balu" C
5a8cf78d51
Move conditional to a separate method
2018-01-15 23:52:00 +05:30
Balasankar "Balu" C
ad25ef1f0d
List available backups for restore
2018-01-15 20:33:35 +05:30
Maxim Rydkin
1833328b30
Decrease ABC threshold to 54.28
2017-10-22 17:12:35 +00:00
Rémy Coutable
8b8bab118e
Stub ENV in the backup task spec file
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-18 18:42:09 +02:00
Tiago Botelho
4c5acddaa7
Adds EE tag detection to remove_old in gitlab backup.
2017-09-21 13:00:58 +01:00
Tiago Botelho
0a60698892
Tighten up remove_old regex from gitlab backup manager.
2017-09-20 12:11:14 +01:00
Rémy Coutable
c946ee1282
Enable the Layout/SpaceBeforeBlockBraces cop
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-09 11:52:22 +02:00
Markus Koller
d27dec80ce
Support custom directory in gitlab:backup:create task
2017-07-27 13:24:19 +02:00
Achilleas Pipinellis
e4d9be0e6b
Fix rubocop
2017-05-23 11:17:25 +02:00
Achilleas Pipinellis
450e2cd879
Add missing regex to backup manager
...
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.
2017-05-23 10:23:04 +02:00
Rémy Coutable
b5526a2d13
Merge branch 'gl-version-backup-file' into 'master'
...
Add GitLab version to backup file name
See merge request !10901
2017-04-26 18:22:33 +00:00
Maxim Rydkin
6a541c7905
Decrease ABC threshold to 57.08
2017-04-26 10:54:11 +00:00
Achilleas Pipinellis
43f73107ca
Expose GitLab version in backup file
...
Instead of doing hacks like http://stackoverflow.com/a/26082612/974710
2017-04-25 11:36:52 +02:00
Jon Keys
7a7ec1ac0f
Add storage class configuration option for Amazon S3 remote backups
2017-02-28 16:30:58 -05:00
Douwe Maan
87c9df29ce
Don’t exclude some file in lib from rubocop
2017-02-23 09:32:42 -06:00
Kamil Trzcinski
732a821d4f
Fix specs
2017-01-31 22:50:40 +00:00
Adam Niedzielski
82692ea214
Restore backup correctly when "BACKUP" environment variable is passed
2017-01-09 18:38:53 +01:00
Sean McGivern
2fc1e643a7
Fix Backup::Manager#remove_old
2016-12-07 13:27:44 +00:00
David Gerő
0fbb5a86db
Add Human Readable Timestamp to backup tar file
2016-11-30 11:41:53 +01:00
bogdanvlviv
96ebc8c4f7
Use `File::exist?` instead of `File::exists?`
...
Since version ruby-2.2.0, method `File::exists?` is deprecated.
2016-08-11 13:54:45 +03:00
Stan Hu
f03df22815
Only create the backup directory if it is local
...
Closes #12710
2016-06-10 10:17:54 -07: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
Robert Speicher
b826c9ff17
Create the specified remote directory during backup
...
This is idempotent, so there's no harm calling it if the directory
already exists.
Closes #12710
2016-05-31 13:29:37 -04:00
Kamil Trzcinski
718fe268c4
Improve after review
2016-05-24 22:52:31 -05: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
Jeroen Nijhof
897f18032a
Make sure there is a connection before using ActiveRecord
2016-02-08 17:31:24 +01:00
Marin Jankovski
3cc2b48a82
Backup LFS objects same as any upload.
2015-11-19 10:43:45 +01:00
Marin Jankovski
bf3c0aafaa
USe reject.
2015-11-18 18:14:13 +01:00
Marin Jankovski
f5e3d93c28
Check which folders and archives should be packed before passing to tar command.
2015-11-18 13:01:35 +01:00