diff --git a/cron-tasks/backup_database_medicine.sh b/cron-tasks/backup_database_medicine.sh index 04a1946..9071367 100755 --- a/cron-tasks/backup_database_medicine.sh +++ b/cron-tasks/backup_database_medicine.sh @@ -4,7 +4,7 @@ set -e cd /root/medicine-backups/ -weekday=$(date +%u) +weekday=$(date +%a) backup_filename="medicine_${weekday}.sql" archive_filename="medicine_${weekday}.tar.gz" docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F p medicine > "${backup_filename}" \ diff --git a/cron-tasks/backup_database_medicine_remd.sh b/cron-tasks/backup_database_medicine_remd.sh index 6283386..801b6b7 100755 --- a/cron-tasks/backup_database_medicine_remd.sh +++ b/cron-tasks/backup_database_medicine_remd.sh @@ -4,7 +4,7 @@ set -e cd /root/medicine-backups/ -weekday=$(date +%u) +weekday=$(date +%a) 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}"