Backup compression option
Created by: soullivaneuh
As requested here, this PR add a compression option for backup.
TODO list:
- Compression settings on gitlab.yml
- Implement compression commands on backup create
- The restore method should guess compression type and extract it to avoid BC break
- Improve clean old backups method to fetch compressed packs
- Check backup upload method to fetch compressed packs
- Check for backup test and update it
- Check if docs could be updated (upgrade)
- Give some benchmark with dev env
- Update CHANGELOG
This feature would be useful to save some space especially for big Gitlab platforms.
Some benchmark, done on my workstation with default dev env and data:
Extension | Time | Size |
---|---|---|
.tar | 0m7.746s | 101M |
.tar.gz | 0m10.158s | 96M |
.tar.bz2 | 0m20.678s | 96M |
.tar.xz | 0m35.414s | 80M |
This benchmark use default compression level.
Tell me if I missed some check on todo list!