Close

August 18, 2017

Dropbox LAMP: Schedule WordPress Core Update & All Plugins Update

This assumes the wordpress install is the directory

/var/www/html/blog

And that you want to update WordPress at 2:15am everyday and the plugins at 5:15am every day.

Type

crontab -e

Go to the bottom and paste this

15 2 * * * cd /var/www/html/blog; wp core update --allow-root > /dev/null 2>&1
30 5 * * * cd /var/www/html/blog; wp plugin update --all --allow-root > /dev/null 2>&1

Save it and Exit

Leave a Reply

Your email address will not be published. Required fields are marked *