Skip to content

Commit 44f70c1

Browse files
committed
workflow test4
1 parent afdff92 commit 44f70c1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM debian:bookworm
44
ENV DEBIAN_FRONTEND=noninteractive
55

66
# Set timezone (default: UTC)
7-
ENV TZ=UTC
7+
ENV TZ=Europe/Lisbon
88
#Europe/Lisbon UTC
99
# Install required packages
1010
RUN apt-get update && apt-get install -y \

backup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ echo "Now is $(date +"%H:%M"), creating backup..."
2323
# Clean up at 03:00
2424
if [[ "$CURRENT_TIME" == "0300" ]]; then
2525
echo "[$TIMESTAMP] Clean backups with more than $RETENTION_DAYS days..."
26-
find "$BACKUP_DIR" -type f -mtime +$RETENTION_DAYS -exec rm {} \;
27-
fi #mmin test
26+
find "$BACKUP_DIR" -type f -mmin +$RETENTION_DAYS -exec rm {} \;
27+
fi #mmin test mtime
2828

2929
# Waiting for postgres
3030
until pg_isready -h "$DB_HOST" -p "$DB_PORT" -U "$DB_USER"; do

crontab.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
0 14 * * * . /etc/environment; /backup.sh >> /var/log/backup.log 2>&1
44

55
# Test every 1 minute
6-
#* * * * * . /etc/environment; /backup.sh >> /var/log/backup.log 2>&1
6+
* * * * * . /etc/environment; /backup.sh >> /var/log/backup.log 2>&1

0 commit comments

Comments
 (0)