Use tar gzip instead of zip

This commit is contained in:
Tibo De Peuter 2023-07-02 21:52:26 +02:00
parent 543834a894
commit 5df5d38491

2
backups/create_gitea_backup.sh Normal file → Executable file
View file

@ -27,7 +27,7 @@ docker exec --env-file "${PASSFILE}" "${database_container}" pg_dump 'gitea' -cw
docker cp "${database_container}":"${internal_database_backupfile}" "${BACKUP_DEST}"
# Backup files
zip -r "${BACKUP_DEST}/gitea-data_$( date +'%Y%m%d' ).zip" '/mnt/APPS/hugit'
tar czvf "${BACKUP_DEST}/gitea-data_$(date +'%Y%m%d').tar.gz" -C "/mnt/APPS/hugit"
# Disable maintenance mode
# TODO