3
0
Fork 0

уменьшил размер бэкапа

This commit is contained in:
Ilya Mukhortov 2026-07-27 11:56:01 +10:00
parent 20f8012e0a
commit 9106db3349
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@ backup_filename="medicine_${weekday_number}_${weekday}.sql"
archive_filename="medicine_${weekday_number}_${weekday}.tar.gz"
docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F p medicine > "${backup_filename}" \
--exclude-table-data=riisz_logging \
--exclude-table-data=patient_changes \
--exclude-table-data=всеалоны_подробно \
--exclude-table-data=талоны_подробно \
--exclude-table-data=всеалоны \
--exclude-table-data=пациенты *\
--exclude-table-data=historical_* \
--exclude-table-data=reversion_*
if test -f "${archive_filename}"; then