Skip to content

Instantly share code, notes, and snippets.

@Intelrunner
Last active July 29, 2024 17:14
Show Gist options
  • Save Intelrunner/e1f68c744db888fdb51006d3edf41fdd to your computer and use it in GitHub Desktop.
Save Intelrunner/e1f68c744db888fdb51006d3edf41fdd to your computer and use it in GitHub Desktop.
Set a crontab to run a script every 15 min
#!/bin/bash
# Create the crontab entry
(crontab -l 2>/dev/null; echo "*/5 * * * * source /var/user-scripts/backup_script.sh") | crontab -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment