WordPress Developer & Linux Administrator

Author Archive

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:

database
files
both

Continue Reading

Changing the date & time of a file or files

Ever needed to quickly change the date and time of a particular file? The reasons for something like this might be endless, but a practical example might be forcing a file to copy out to another location via some automated scripts you have in place to deploy website changes, etc. I’ll be damned if I’m going to manually open, save, and close a file in order to modify its date/time stamp.

Continue Reading

cPanel shell script to pkgacct each user on a server

This script creates an extra backup of users on server with cPanel’s built-in packaging system. These are restorable backups which are basically a snapshot of any given cPanel account. When you restore, they will be perfect copies of the account as it was at the time of backup.

Continue Reading

ERROR:This RRD was created on another architecture

You will get this error during cpanel account transfer time or with cpanel package account script.

ERROR: This RRD was created on another architecture

If your old machine was 32bit arch with 32bit OS, and the new machine is 64bit with 64bit OS. then you can use rrddump and rrdrestore one can transfer RRD between architectures with ease.

Continue Reading

Get list of users that belong to cPanel reseller

Ever needed to write a script that works with all cPanel accounts that are “owned” by a specific cPanel reseller account? Me too. But I wasn’t sure how to do it.

Continue Reading