Last active
July 29, 2024 17:14
-
-
Save Intelrunner/e1f68c744db888fdb51006d3edf41fdd to your computer and use it in GitHub Desktop.
Set a crontab to run a script every 15 min
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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