1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-01-15 21:19:14 +10:00
parent 23bdbc7b6a
commit 4c3cb380d9
2 changed files with 6 additions and 8 deletions

View File

@ -11,7 +11,6 @@ docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F p medic
--exclude-table-data=riisz_logging \ --exclude-table-data=riisz_logging \
--exclude-table-data=reversion_* --exclude-table-data=reversion_*
cd /root/medicine-backups/ rm "${archive_filename}" || true
rm archive_filename || true tar -czf "${archive_filename}" "${backup_filename}"
tar -czf archive_filename backup_filename rm "${backup_filename}"
rm backup_filename

View File

@ -9,7 +9,6 @@ backup_filename="medicine_remd_${weekday}.sql"
archive_filename="medicine_remd_${weekday}.tar.gz" archive_filename="medicine_remd_${weekday}.tar.gz"
docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F p medicine_remd > "${backup_filename}" docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F p medicine_remd > "${backup_filename}"
cd /root/medicine-backups/ rm "${archive_filename}" || true
rm archive_filename || true tar -czf "${archive_filename}" "${backup_filename}"
tar -czf archive_filename backup_filename rm "${backup_filename}"
rm backup_filename