backup applicatoin
docker exec -t <your container name> gitlab-backup
backup config
docker exec -t <your container name> /bin/sh -c 'gitlab-ctl backup-etc && cd /etc/gitlab/config_backup && cp $(ls -t | head -n1) /secret/gitlab/backups/'
# or more simply (warn: you should take care of the secrets as above do!):
docker exec -t <your container name> gitlab-ctl backup-etc