Skip to content

Commit becefe1

Browse files
committed
change cron
1 parent f909975 commit becefe1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

backup.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ fi
2424
# scheduele backup window
2525
crontab -l | { cat; echo "$BACKUP_WINDOW /backup/functions.sh"; } | crontab -;
2626

27-
while [ true ]; do
28-
sleep 3600;
29-
echo "Hy im still alive since the last time you check me !!!!! "
30-
done
27+
cron -f -L 8
28+
29+
exit $?

functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ make_backup () {
99

1010
}
1111

12-
make_backup
12+
make_backup;

0 commit comments

Comments
 (0)