In the LuCI interface, under System >> Scheduled Tasks, enter (at the top):
# ┌───────────── minute (0–59); */5 every 5 minutes; */10 every 10 minutes # │ ┌───────────── hour (0–23) # │ │ ┌───────────── day of month (1–31) # │ │ │ ┌───────────── month (1–12 or JAN–DEC) # │ │ │ │ ┌───────────── day of week (0–7 or SUN–SAT, 0 and 7 = Sunday) # │ │ │ │ │ # * * * * * # # ENSURE ALL SCRIPTS HAVE A SHEBANG AT THE TOP, eg: #!/bin/sh # ENSURE ALL SCRIPTS HAVE BEEN MADE EXECUTABLE, eg: chmod +x /etc/YOUR SCRIPT.sh # # PLACE SCRIPTS IN /etc/ SO THEY SURVIVE FIRMWARE UPDATES, eg: # cat << 'EOF' > /etc/YOUR_SCRIPT.sh # {SCRIPT GOES HERE} # EOF # # EXAMPLE: # System configuration backup (SUNDAYS at 0415) 15 4 * * 0 /bin/sh /etc/backup_router.sh # # EXAMPLE # Compact memory if needed (Every 5 minutes) */5 * * * * /bin/sh -c /etc/memcompact.sh