#!/bin/bash #author: Thomas Roehm #version: 1.1 #set container-ID of your gitlab CONTAINERID="e039f53d298a" docker exec -it ${CONTAINERID} gitlab-backup restore --trace read -p "Please enter the version you want to restore (e. g. \"1586806592_2020_04_13_12.4.2\"): " ID echo "ID: \"${ID}\" will be restored!" echo "" docker exec -it ${CONTAINERID} gitlab-backup restore BACKUP=${ID} echo"" echo "ID \"${ID}\" has been restored"