From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
GitLab backups
From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab
GitLab backups
- [Instructor] If you were running GitLab on an on-premise server or on a VM, you can send a command into the container to tell GitLab to run its backup tasks. These happen through a Ruby tool called Rake and Gitlab ships with several rake tasks. In your SSH session with the server type sudo space docker space exec space dash T space Gitlab so now we're going to be running a bash command inside of our git container so we're going to type Gitlab dash rake space Gitlab colon backup colon create and this very last bit is the name of the rake task and hit enter you will see at the end of the output that it created a tar ball which is a compressed file for Linux systems it's like a zip file this file is stored on our server on one of the mount points we use when starting our docker container the directory on the server is owned by the root user because we start at the docker container using sudo so you'll need to assume the root user just to see the directory type sudo space dash I and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.