Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitlab backup: make gitlab-rake produce tar.gz files not tar

Backup files I get with gitlab-rake are tar files how can I get tar.gz ?

Here the files::

root@gitlab:~# ll /mnt/backup-git/ -h
total 1.9G
-rw------- 1 git  git   57M Nov 29 15:57 1480431448_gitlab_backup.tar
-rw------- 1 git  git   57M Nov 29 15:57 1480431473_gitlab_backup.tar
-rw------- 1 git  git  452M Nov 30 02:00 1480467623_gitlab_backup.tar

Here my configuration values for the backup::

$ grep -i backup /etc/gitlab/gitlab.rb | grep -v '^#'
gitlab_rails['backup_path'] = "/mnt/backup-git/"
gitlab_rails['backup_keep_time'] = 604800

To create them, following the documentation here, (omnibus installation):

root@gitlab:~# crontab -l | grep -v '^#'
0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1
like image 757
user3313834 Avatar asked Oct 24 '25 10:10

user3313834


1 Answers

It doesn't really make sense to compress the gitlab backup tar files. The gitlab backup tar files are the final tarball made during the backup process and the contents are all files compressed during the backup process. You can read more here

like image 189
John Avatar answered Oct 26 '25 03:10

John



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!