Backup in gitlab

How can i make sure that the command
gitlab-rake gitlab:backup:create

worked successfully.

Is there any way to check the status of the backup taken and how can i ensure that the backup has been taken for all the data.

Thanks ,
Arjit

Hi,

the most easiest way would be to check the exit code of that command. You can e.g. capture this in bash like this:

gitlab-rake gitlab:backup:create
echo $?

You could also modify this little check script and integrate that e.g. into your monitoring tool like Icinga: https://gitlab.science.ru.nl/snippets/90

Cheers,
Michael

Are you still running 12.1 (or older)? In 12.2 a new gitlab-backup was added (silently). And if you have a newer GitLab and is still working on the setup I see no reason to go with the old command. See the documentation on:
https://docs.gitlab.com/ce/raketasks/backup_restore.html#creating-a-backup-of-the-gitlab-system