1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-01-15 21:17:56 +10:00
parent 46d186fb2e
commit 23bdbc7b6a
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -9,6 +9,7 @@ backup_filename="medicine_remd_${weekday}.sql"
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}"
cd /root/medicine-backups/
rm archive_filename || true
tar -czf archive_filename backup_filename
rm backup_filename