-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.crontab.txt
16 lines (15 loc) · 1.03 KB
/
.crontab.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# apply this crontab
# sudo crontab -u www-data .crontab.txt
# run proxy checker /usr/bin/php every 10 minutes
# */10 * * * * /usr/bin/php /var/www/html/proxyChecker.php > /var/www/html/proxyChecker.txt 2>&1
# fetch proxies every 4 hours
# 7 */4 * * * /usr/bin/php /var/www/html/proxyFetcher.php > /var/www/html/proxyChecker.txt 2>&1
# run proxy checker parallel 17 past every hour
# 17 */1 * * * /usr/bin/php /var/www/html/proxyCheckerParallel.php > /var/www/html/proxyChecker.txt 2>&1
# run config cleaner every week
0 0 * * 0 /usr/bin/php /var/www/html/cleaner.php > /var/www/html/proxyChecker.txt 2>&1
# backup database every day at midnight
0 0 * * * /usr/local/bin/sqlite3 /var/www/html/src/database.sqlite .dump > /var/www/html/backups/php_database_backup_$(date +\%Y-\%m-\%d).sql
0 0 * * * /usr/local/bin/sqlite3 /var/www/html/tmp/database.sqlite .dump > /var/www/html/backups/python_database_backup_$(date +\%Y-\%m-\%d).sql
# run custom crontab script every hours
0 * * * * bash /var/www/html/.crontab.sh > /var/www/html/proxyChecker.txt 2>&1