pass
This commit is contained in:
parent
c42cd971c9
commit
70d135211c
|
|
@ -5,9 +5,10 @@ export LC_ALL=C
|
|||
|
||||
cd /root/medicine-backups/
|
||||
|
||||
weekday_number=$(date +%u)
|
||||
weekday=$(date +%A | tr '[:upper:]' '[:lower:]')
|
||||
backup_filename="medicine_${weekday}.sql"
|
||||
archive_filename="medicine_${weekday}.tar.gz"
|
||||
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=reversion_*
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@ export LC_ALL=C
|
|||
|
||||
cd /root/medicine-backups/
|
||||
|
||||
weekday_number=$(date +%u)
|
||||
weekday=$(date +%A | tr '[:upper:]' '[:lower:]')
|
||||
backup_filename="medicine_remd_${weekday}.sql"
|
||||
archive_filename="medicine_remd_${weekday}.tar.gz"
|
||||
backup_filename="medicine_remd_${weekday_number}_${weekday}.sql"
|
||||
archive_filename="medicine_remd_${weekday_number}_${weekday}.tar.gz"
|
||||
docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F p medicine_remd > "${backup_filename}"
|
||||
|
||||
if test -f "${archive_filename}"; then
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
59 23 * * * /root/medicine-config/cron-tasks/backup_database_medicine.sh
|
||||
55 23 * * * /root/medicine-config/cron-tasks/backup_database_medicine_remd.sh
|
||||
55 13 * * * /root/medicine-config/cron-tasks/backup_database_medicine.sh
|
||||
50 13 * * * /root/medicine-config/cron-tasks/backup_database_medicine_remd.sh
|
||||
|
|
@ -1 +1 @@
|
|||
30 23 * * * /root/medicine-config/medicine-remd/update.sh
|
||||
30 13 * * * /root/medicine-config/medicine-remd/update.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue