What is the best way to create backup in an existing gitlab and restore the same backup in a new gitlab server? [closed]

What is the best way to backup and restore gitlab incuding all repositories, commit comments, wall comments, wiki etc.


Solution 1:

From the documentation:

A backup creates an archive file that contains the database, all repositories and all attachments. This archive will be saved in backup_path (see config/gitlab.yml).

The filename will be [TIMESTAMP]_gitlab_backup.tar. This timestamp can be used to restore an specific backup.

sudo gitlab-rake gitlab:backup:create