03 Mar, 2014
1 commit
01 Mar, 2014
1 commit
-
Backup Uploads Symlink
27 Feb, 2014
2 commits
-
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.
-
Pg Force Restore
26 Feb, 2014
3 commits
-
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.
-
The backup restore code for repositories was assuming that gitlab-shell is installed in /home/git/gitlab-shell. This commit changes that to use the configuration setting from gitlab.yml that specifies the path where gitlab-shell is installed.
-
The backup restore code moves any existing uploads directory out of the way before restoring the copy from the backup. If public/uploads was a symlink, this move would replace the symlink. This commit avoids this issue by first resolving any symlinks in the uploads path.
23 Jan, 2014
1 commit
06 Nov, 2013
2 commits
05 Nov, 2013
1 commit
-
This reverts commit c46eaca91247ccf8e6fb3b691dad028e1b084ae3.
04 Nov, 2013
1 commit
-
- 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 <nkukard@lbsd.net>
10 Oct, 2013
1 commit
05 Aug, 2013
1 commit
11 Jul, 2013
1 commit
-
Fix PostgreSQL database restoration problem (#4217)
10 Jun, 2013
1 commit
-
Use psql instead of pg_restore to restore SQL dump file.
30 May, 2013
1 commit
-
These fixes will allow a restore of gitlab when the backups and repositories directories are in non-standard locations (ie sub-dirs of gitlabhq). Also allows the restore to be run from script overriding the need of a user to confirm the rebuild of the authorized_keys file.
27 May, 2013
1 commit
07 May, 2013
1 commit
-
By default there is no public/uploads directory when no attachments are uploaded. Prompt users to create the uploads directory during install otherwise the backup task will fail. Place mysqldump args in single quotes to avoid error if password contains special characters. Signed-off-by: Axilleas Pipinellis <axilleas@archlinux.gr>
10 Apr, 2013
2 commits
05 Apr, 2013
3 commits