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
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
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
Jacob Vosmaer
d3734fbd89
Use tar for intermediate backup storage
...
During the backup we create an intermediate copy of two directories:
builds and uploads. Instead of creating many small files with 'cp
-r', we now use tar (and fast gzip) to create single intermediate
files. This saves on disk IO and disk space while creating a backup.
2015-10-06 14:43:19 +02:00
Paul Beattie
253d2320ab
Add support for AWS S3 Server-Side Encryption support
...
This adds support for AWS S3 SSE with S3 managed keys, this means the
data is encrypted at rest and the encryption is handled transparently to
the end user as well as in the AWS Console. This is optional and not
required to make S3 uploads work.
2015-09-25 17:06:31 +01:00
Kamil Trzcinski
2f2b9f67c2
Fix backup tests
2015-09-16 00:06:41 +02:00
Dmitriy Zaporozhets
b118f648cb
Merge branch 'master' of github.com:gitlabhq/gitlabhq
2015-08-03 11:04:04 +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
bb50b7fcd0
Allow custom backup archive permissions
...
This change helps system administrators who want to replicate
GitLab backup files without needing root permissions.
2015-07-06 18:43:17 +02:00
Jeroen Nijhof
a7047569db
use gitlab not gitlabci
2015-06-09 18:30:38 +02:00
Jeroen Nijhof
bf7315cb13
update fog to 1.25.0 and add multipart upload support
2015-06-09 17:56:37 +02:00
Valery Sizov
67c83489ca
ability to skip some items in backup
2015-04-02 15:37:50 +03:00
Vinnie Okada
0f78d92e4c
Don't use chmod_R for backup tars
...
When creating backup tar files, only change permissions on the `db`,
`uploads`, and `repositories` directories, not their contents.
2015-03-28 08:38:48 -06:00
Vinnie Okada
083027fc84
Change directory when removing old backups
2015-03-24 20:47:11 -06:00
Vinnie Okada
06aafb7364
Call chdir() with a block
2015-03-19 20:30:19 -06:00
Vinnie Okada
61c06c5e1a
Change permissions on backup files
...
Use more restrictive permissions for backup tar files and for the db,
uploads, and repositories directories inside the tar files.
2015-03-17 19:04:21 -06:00
Dmitriy Zaporozhets
3a324d9c6d
Revert "Merge branch 'backup-permissions' into 'master'"
...
This reverts commit c42262b43b , reversing
changes made to c6586b1283 .
2015-03-16 23:51:46 -07:00
Vinnie Okada
8587a29370
Change permissions on backup files
...
Use more restrictive permissions for backup tar files and for the db,
uploads, and repositories directories inside the tar files.
2015-03-15 13:14:30 -06:00
Dmitriy Zaporozhets
8184a65644
Revert "Fix broken access control and refactor avatar upload"
...
This reverts commit 7d5f86f6cb .
2015-02-19 08:57:35 -08:00
Hannes Rosenögger and Douwe Maan
7d5f86f6cb
Fix broken access control and refactor avatar upload
...
This commit moves the note folder from
/public/uploads/note
to
/uploads/note
and changes the uploader accordingly.
Now it's no longer possible to avoid the access control by modifing the url.
The Avatar upload has been refactored to use an own uploader as well
to cleanly seperate the two upload types.
2015-02-16 20:10:15 +01:00
Jacob Vosmaer
7c54c63ac1
Add CRON=1 backup setting for quiet backups
2014-11-20 15:46:04 +01:00
Jacob Vosmaer
02bf992f37
Fail harder in the backup script
...
This change also shows the output of failed Git commands during the
backup.
2014-10-01 15:43:27 +02:00
Jacob Vosmaer
e1f6fa6f18
Add backup upload support to the rake task
2014-09-29 15:03:08 +02:00
Jacob Vosmaer
da347d1bb4
Apply the locale encoding to tar --version
...
Fixes a bug with non-UTF8 locales introduced by
2b816075dc .
2014-05-08 18:23:44 +02:00
Jacob Vosmaer
2b816075dc
Replace backticks with Gitlab::Popen
2014-03-03 08:40:29 +01:00
Jacob Vosmaer
75f274b750
Use Gitlab::VERSION to version backups
...
Previous to this commit, backups were tied to the git revision (SHA1) of
the app at the time the backup:create command was invoked. If the SHA1
at the time of restore was different, the script would refuse to restore
the backup. This commit loosens this tie so that the backup script only
complains if the value of the Gitlab::VERSION constant is different
between the time of backup and the time of restore.
2014-02-27 14:30:41 +01:00
Jacob Vosmaer
36f3de4f59
Remove duplication in Backup::Manager
2013-11-06 14:02:28 +01:00
Jacob Vosmaer
a540ab4290
Remove Bourne shell from backup code
2013-11-06 14:02:28 +01:00
Dmitriy Zaporozhets
02e859a234
move backup logic to lib. Fixed removing outdated backups
2013-08-05 12:26:33 +03:00