WordPress Developer & Linux Administrator

December, 2014

Bash script to DNS lookup for cPanel reseller

This bash script will take a given cPanel reseller, find all of its users, fetch all cPanel domains related to the user, and perform a dig DNS lookup on each of the cPanel domain names. By default, it performs a lookup of just an A record, however, you can customize the -t flag to any number of other DNS lookups. Such as: A, TXT, MX, NS, SOA, HINFO, or AXFR.

Continue Reading

Bash script to upgrade Wordpress

This bash shell script will accept input, confirming that you first have a valid WordPress backup file on hand. Once you’ve answered with a Y (indicating “yes”), the script will let you proceed to updating the WordPress core. The bash script pulls the newest version of WordPress from the official WordPress repository and places everything where it should be.

Continue Reading

Bash script to backup Wordpress

This bash script will accept input and guide you through what it does, but in short, it checks to see if the backup directory specified is set, if not creates it. It will then ask you whether you want one of the following types of backup:


Continue Reading