summaryrefslogtreecommitdiff
path: root/lib/backup/repository.rb
Commit message (Collapse)AuthorAgeFilesLines
* Replace all usages of `git` command with configurable binary pathrs-git-bin-pathRobert Speicher2015-11-031-3/+3
| | | | Closes #3311
* Stricter mkdir's in 'rake gitlab:backup:create'backup-directory-permissionsJacob Vosmaer2015-07-301-1/+4
|
* Set internal backup directory modes on createJacob Vosmaer2015-07-291-1/+1
| | | | This sidesteps problems with running 'chmod' on some CIFS mounts.
* backup repo with tar instead of git bundleValery Sizov2015-03-191-2/+3
|
* Properly fix wiki restore.Achilleas Pipinellis2014-11-301-12/+14
| | | | | | ProjectWiki.new() creates a new wiki git repository, so any tries to bare clone a bundle fail. With this patch we remove the newly created wiki.git before restoring from the backup bundle.
* Proper wiki restore. Fixes #845Achilleas Pipinellis2014-11-291-8/+12
|
* Add CRON=1 backup setting for quiet backupsJacob Vosmaer2014-11-201-16/+25
|
* Correctly restore empty repositories.Dimitry Andric2014-11-131-1/+7
| | | | | | If a project is being restored, but there is no bundle file, the project was empty when it was backed up. In this case, just use git init --base to create a new bare repository.
* Factor using Repository#path_to_repoCiro Santilli2014-11-051-1/+1
|
* Ask the wiki repo, not Gollum, if it's emptyJacob Vosmaer2014-10-201-1/+1
| | | | | | | We need to skip empty repositories when creating a backup. Before this change, we were asking gollum-lib if the wiki contains any _pages_. Now we ask gitlab_git if the repository contains _files_. This should resolve gollum_lib Grit timeouts in the backup script.
* Fail harder in the backup scriptJacob Vosmaer2014-10-011-6/+17
| | | | | This change also shows the output of failed Git commands during the backup.
* Use create-hooks instead of rewrite-hooks.shJacob Vosmaer2014-09-081-1/+1
| | | | | The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's create-hooks script.
* Backup wiki repo even if the main repo is emptyJacob Vosmaer2014-05-081-6/+3
| | | | | This fixes a bug where wiki repositories for projects with an empty main repository would not get backed up.
* Use ProjectWiki instead of GollumWiki in codeDmitriy Zaporozhets2014-04-091-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Use gitlab_shell.path to invoke rewrite-hooks.shJacob Vosmaer2014-02-261-2/+1
| | | | | | | 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.
* Remove Bourne shell from backup codeJacob Vosmaer2013-11-061-5/+9
|
* Revert "More escaping"Dmitriy Zaporozhets2013-11-051-5/+4
| | | | This reverts commit c46eaca91247ccf8e6fb3b691dad028e1b084ae3.
* More escapingNigel Kukard2013-11-041-4/+5
| | | | | | | | | - 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>
* Skip rather than fail empty wikis during backupJacob Vosmaer2013-10-101-1/+3
|
* fixes for gitlab restore with non-standard backup and repo dirsAngus MacArthur2013-05-301-1/+1
| | | | | | | | 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.
* Run rewrite-hooks after repos restoreDmitriy Zaporozhets2013-04-101-0/+9
|
* Backup/restore wiki repos tooDmitriy Zaporozhets2013-04-051-0/+22
|
* move old repositories dir to one with timestampDmitriy Zaporozhets2013-04-051-1/+1
|
* refactor backup/restoreDmitriy Zaporozhets2013-04-051-0/+74