<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/lib/backup/database.rb, branch api-groups</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Add CRON=1 backup setting for quiet backups</title>
<updated>2014-11-20T14:46:04+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2014-11-20T14:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7c54c63ac14eb8f5ce0e364d709988fcfe4dda64'/>
<id>7c54c63ac14eb8f5ce0e364d709988fcfe4dda64</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop all Postgres sequences during backup restore</title>
<updated>2014-10-28T17:52:21+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2014-10-28T17:52:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e00e67db42ea3e4b994160dbdc288a8effa14713'/>
<id>e00e67db42ea3e4b994160dbdc288a8effa14713</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fail harder in the backup script</title>
<updated>2014-10-01T13:43:27+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2014-10-01T13:43:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=02bf992f378f8b56ec7e698b5d603ded895dd0a4'/>
<id>02bf992f378f8b56ec7e698b5d603ded895dd0a4</id>
<content type='text'>
This change also shows the output of failed Git commands during the
backup.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change also shows the output of failed Git commands during the
backup.
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop all tables before restoring a PostgreSQL DB</title>
<updated>2014-03-28T12:44:46+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2014-03-28T12:38:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=77b57c114be6b1fa02538c35066ccc363bfe68e6'/>
<id>77b57c114be6b1fa02538c35066ccc363bfe68e6</id>
<content type='text'>
Invoking 'db:schema:load' turned out to be a bad idea: when downgrading
an existing GitLab installation, the schema of the newer version would
be preserved when trying to import the old version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Invoking 'db:schema:load' turned out to be a bad idea: when downgrading
an existing GitLab installation, the schema of the newer version would
be preserved when trying to import the old version.
</pre>
</div>
</content>
</entry>
<entry>
<title>Empty the database during Postgres backup restore</title>
<updated>2014-02-26T17:26:31+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2014-02-26T17:26:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=8fe10e642ad9b5d236d2b00cea475bdc519130c0'/>
<id>8fe10e642ad9b5d236d2b00cea475bdc519130c0</id>
<content type='text'>
The expected behavior during a GitLab backup restore is to overwrite
existing database data. This works for MySQL because the output of
mysqldump contains 'DROP TABLE IF EXISTS' statements. pg_dump on the
other hand assumes that one will restore into an empty database. When
this is not the case, during the restore with psql some of the data will
be skipped if existing data is 'in the way'. By first invoking `rake
db:schema:load` during a Postgres GitLab backup restore, we make sure
that all important data is correctly restored.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The expected behavior during a GitLab backup restore is to overwrite
existing database data. This works for MySQL because the output of
mysqldump contains 'DROP TABLE IF EXISTS' statements. pg_dump on the
other hand assumes that one will restore into an empty database. When
this is not the case, during the restore with psql some of the data will
be skipped if existing data is 'in the way'. By first invoking `rake
db:schema:load` during a Postgres GitLab backup restore, we make sure
that all important data is correctly restored.
</pre>
</div>
</content>
</entry>
<entry>
<title>Report failure of DB backup commands</title>
<updated>2014-01-23T10:19:43+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2014-01-23T10:19:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=9e6fc8b5269f8583e88c67c7cdc356f76a8237ed'/>
<id>9e6fc8b5269f8583e88c67c7cdc356f76a8237ed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove Bourne shell from backup code</title>
<updated>2013-11-06T13:02:28+00:00</updated>
<author>
<name>Jacob Vosmaer</name>
<email>contact@jacobvosmaer.nl</email>
</author>
<published>2013-11-05T14:00:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a540ab429025695659bcfad50ae9943cca6c60a9'/>
<id>a540ab429025695659bcfad50ae9943cca6c60a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "More escaping"</title>
<updated>2013-11-05T13:35:49+00:00</updated>
<author>
<name>Dmitriy Zaporozhets</name>
<email>dmitriy.zaporozhets@gmail.com</email>
</author>
<published>2013-11-05T13:35:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=f9b66aecddb248dcd501419e0ee94fd69fab4de3'/>
<id>f9b66aecddb248dcd501419e0ee94fd69fab4de3</id>
<content type='text'>
This reverts commit c46eaca91247ccf8e6fb3b691dad028e1b084ae3.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit c46eaca91247ccf8e6fb3b691dad028e1b084ae3.
</pre>
</div>
</content>
</entry>
<entry>
<title>More escaping</title>
<updated>2013-11-04T22:09:03+00:00</updated>
<author>
<name>Nigel Kukard</name>
<email>nkukard@lbsd.net</email>
</author>
<published>2013-11-04T22:06:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c46eaca91247ccf8e6fb3b691dad028e1b084ae3'/>
<id>c46eaca91247ccf8e6fb3b691dad028e1b084ae3</id>
<content type='text'>
- Database name may contain characters which are not shell friendly
- Database password could contain the same
- While we at it there is no harm in escaping generated paths too
- Refactored 2-line system(command)

Signed-off-by: Nigel Kukard &lt;nkukard@lbsd.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Database name may contain characters which are not shell friendly
- Database password could contain the same
- While we at it there is no harm in escaping generated paths too
- Refactored 2-line system(command)

Signed-off-by: Nigel Kukard &lt;nkukard@lbsd.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PostgreSQL database restoration problem (#4217)</title>
<updated>2013-06-10T11:06:12+00:00</updated>
<author>
<name>andrewwutw</name>
<email>andrewwu.tw@gmail.com</email>
</author>
<published>2013-06-10T11:06:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=b898372154fcb1de8b1b2a7e3486a5113ecae19b'/>
<id>b898372154fcb1de8b1b2a7e3486a5113ecae19b</id>
<content type='text'>
Use psql instead of pg_restore to restore SQL dump file.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use psql instead of pg_restore to restore SQL dump file.</pre>
</div>
</content>
</entry>
</feed>
