Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 666 Bytes

File metadata and controls

25 lines (21 loc) · 666 Bytes

Perform an automatic backup of GitLab Deployment.

Copy backup script.

cp -a gitlab-deployment-backup.sh /usr/bin/
chmod +x /usr/bin/gitlab-deployment-backup.sh

Update the configuration path in the backup script.

Update following in /usr/bin/gitlab-deployment-backup.sh

GITLAB_DEPLOYMENT_DIR="${HOME}/gitlab-deployment"
GITLAB_DEPLOYMENT_BACKUP_PATH="${HOME}/gitlab-deployment-backup"

Copy systemd unit and timer files.

cp gitlab-deployment-backup.timer gitlab-deployment-backup.service /etc/systemd/system/

Enable the timer.

systemctl daemon-reload
systemctl enable --now gitlab-deployment-backup.timer