Backup-Dateien, die ich mit gitlab-rake
bekommen sind TAR-Dateien wie bekomme ich tar.gz
?gitlab backup: machen gitlab-rake produzieren tar.gz files nicht tar
Hier werden die Dateien ::
[email protected]:~# 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
Hier meine Konfigurationswerte für die Sicherung ::
$ grep -i backup /etc/gitlab/gitlab.rb | grep -v '^#'
gitlab_rails['backup_path'] = "/mnt/backup-git/"
gitlab_rails['backup_keep_time'] = 604800
sie zu erstellen, nach der Dokumentation here, (Omnibus-Installation):
[email protected]:~# crontab -l | grep -v '^#'
0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1
Warum nicht einfach gzip sie? – jaxxstorm
Weil in der https://gitlab.com/gitlab-org/gitlab-ci/blob/master/doc/raketasks/backup_restore.md gitlab Dokumentation sie über "tar.gz" gleich hier sprechen: https: // gitlab. com/gitlab-org/gitlab-ce/blob/master/spezifikation/tasks/gitlab/backup_rake_spec.rb – user3313834