Hello,
1. I want limit backup time between 20:00 (8:00 PM) and 9:00 (9:00 AM). I following this http://help.directadmin.com/item.php?id=273
But this doesn't work when I put 20 and 9 - work only if in first is ex. 1 and in second 9..
if [ "$MAKINGBACKUP" -eq 1 ]; then
if [ "$HOUR" -ge 20 ] && [ "$HOUR" -lt 9 ]; then
//this is a valid time, exit.
exit 0;
Anyone can help me with this?
2. How to put 2 bash scripts in all_pre.sh file?
1. I want limit backup time between 20:00 (8:00 PM) and 9:00 (9:00 AM). I following this http://help.directadmin.com/item.php?id=273
But this doesn't work when I put 20 and 9 - work only if in first is ex. 1 and in second 9..
if [ "$MAKINGBACKUP" -eq 1 ]; then
if [ "$HOUR" -ge 20 ] && [ "$HOUR" -lt 9 ]; then
//this is a valid time, exit.
exit 0;
Anyone can help me with this?

2. How to put 2 bash scripts in all_pre.sh file?