GitLab restore does not include custom_hooks
Summary
Restoring gitlab backup does not include custom_hooks after restore.
Attached are screenshots of custom_hooks directory in repository being backed up, missing after restore and showing the custom_hooks tar file in backup file. check.outSceenshots.docx
Steps to reproduce
Backup gitlab using this command: gitlab-rake gitlab:backup:create
Restore using these steps:
cd /var/opt/gitlab/backups/ mv /tmp/1485219618_2017_01_23_gitlab_backup.tar . gitlab-ctl stop unicorn gitlab-ctl stop sidekiq gitlab-rake gitlab:backup:restore BACKUP=1485219618_2017_01_23_gitlab_backup.tar gitlab-ctl start gitlab-rake gitlab:check SANITIZE=true
Expected behavior
The custom_hooks directory from each repository should be restored.
Actual behavior
Custom_hooks directory missing after restore.
Results of GitLab application Check
See attached check.out file
Results of GitLab environment info
System information System: CentOS 6.7 Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Sidekiq Version:4.2.7
GitLab information Version: 8.15.2 Revision: gitlab-ce@790035fcb56a496b76b1ab7878d3be2dc2fa6795 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://10.148.247.3:81 HTTP Clone URL: http://10.148.247.3:81/some-group/some-project.git SSH Clone URL: git@10.148.247.3:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 4.1.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/ Git: /opt/gitlab/embedded/bin/git