Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-08Use create-hooks instead of rewrite-hooks.shJacob Vosmaer
The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's create-hooks script.
2014-05-09Backup wiki repo even if the main repo is emptyJacob Vosmaer
This fixes a bug where wiki repositories for projects with an empty main repository would not get backed up.
2014-05-08Apply the locale encoding to `tar --version`Jacob Vosmaer
Fixes a bug with non-UTF8 locales introduced by 2b816075dc71dfe8f6f9e5349fdff7f03ad9dad0.
2014-04-09Use ProjectWiki instead of GollumWiki in codeDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-28Drop all tables before restoring a PostgreSQL DBJacob Vosmaer
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.
2014-03-03Replace backticks with Gitlab::PopenJacob Vosmaer
2014-03-01 Merge branch 'backup_uploads_symlink' into 'master'Dmitriy Zaporozhets
Backup Uploads Symlink
2014-02-27Use Gitlab::VERSION to version backupsJacob Vosmaer
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 Merge branch 'pg_force_restore' into 'master'Dmitriy Zaporozhets
Pg Force Restore
2014-02-26Empty the database during Postgres backup restoreJacob Vosmaer
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.
2014-02-26Use gitlab_shell.path to invoke rewrite-hooks.shJacob Vosmaer
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.
2014-02-26Support symlinked public/uploads for backp restoreJacob Vosmaer
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.
2014-01-23Report failure of DB backup commandsJacob Vosmaer
2013-11-06Remove duplication in Backup::ManagerJacob Vosmaer
2013-11-06Remove Bourne shell from backup codeJacob Vosmaer
2013-11-05Revert "More escaping"Dmitriy Zaporozhets
This reverts commit c46eaca91247ccf8e6fb3b691dad028e1b084ae3.
2013-11-05More escapingNigel Kukard
- 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>
2013-10-10Skip rather than fail empty wikis during backupJacob Vosmaer
2013-08-05move backup logic to lib. Fixed removing outdated backupsDmitriy Zaporozhets
2013-07-11Merge pull request #4264 from andrewwutw/fix-postgresql-restoreDmitriy Zaporozhets
Fix PostgreSQL database restoration problem (#4217)
2013-06-10Fix PostgreSQL database restoration problem (#4217)andrewwutw
Use psql instead of pg_restore to restore SQL dump file.
2013-05-30fixes for gitlab restore with non-standard backup and repo dirsAngus MacArthur
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.
2013-05-27clarify restoreBen Bodenmiller
2013-05-07Fix errors during backup task. Fix #3785Axilleas Pipinellis
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>
2013-04-10backup/restore uploadsDmitriy Zaporozhets
2013-04-10Run rewrite-hooks after repos restoreDmitriy Zaporozhets
2013-04-05Backup/restore wiki repos tooDmitriy Zaporozhets
2013-04-05move old repositories dir to one with timestampDmitriy Zaporozhets
2013-04-05refactor backup/restoreDmitriy Zaporozhets