diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2015-07-07 10:58:27 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2015-07-07 10:58:27 +0000 |
commit | 474d798c421517a092ddef2861634df6027b1b19 (patch) | |
tree | 9385d6049d2cf09615c91d1d18ed3e82e4172c98 /doc | |
parent | f76092c06dd1f3b40a6d32ad3d62ea09bf32d1a0 (diff) | |
parent | 69c659ebd3387ec331a30d6bf53d989803f7276f (diff) | |
download | gitlab-ce-474d798c421517a092ddef2861634df6027b1b19.tar.gz |
Merge branch 'compress-db' into 'master'
Compress database backup
Restore handles both cases: uncompressed and compressed backup. As an improvement `IO.popen` can be used.
/cc @jacobvosmaer
See merge request !873
Diffstat (limited to 'doc')
-rw-r--r-- | doc/update/mysql_to_postgresql.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/update/mysql_to_postgresql.md b/doc/update/mysql_to_postgresql.md index 2c43cf59c1f..8ef3e0d55cc 100644 --- a/doc/update/mysql_to_postgresql.md +++ b/doc/update/mysql_to_postgresql.md @@ -57,12 +57,15 @@ sudo -u git -H git clone https://github.com/gitlabhq/mysql-postgresql-converter. sudo -u git -H mkdir db sudo -u git -H python mysql-postgresql-converter/db_converter.py gitlabhq_production.mysql db/database.sql +# Compress database backup +sudo -u git -H gzip db/database.sql + # Replace the MySQL dump in TIMESTAMP_gitlab_backup.tar. # Warning: if you forget to replace TIMESTAMP below, tar will create a new file # 'TIMESTAMP_gitlab_backup.tar' without giving an error. -sudo -u git -H tar rf TIMESTAMP_gitlab_backup.tar db/database.sql +sudo -u git -H tar rf TIMESTAMP_gitlab_backup.tar db/database.sql.gz # Done! TIMESTAMP_gitlab_backup.tar can now be restored into a Postgres GitLab # installation. Remember to recreate the indexes after the import. |