Our New Pair Networks VPS is Online!

I have been silent for sometime with no posts. Actually, I have been busy with trying out various technologies such as Linode and Vultr. Both are great! And I will still use them for short term projects. However, I have decided that Pair Networks is my best choice for hosting and maintaining my main website and email. I actually built an email server on Vultr, and it was working fine. However, I did not want to continue with the ongoing software and system maintenance.

I am currently using WordPress. I am not sure if it’s the best choice. I have some interest in learning about other CMSs. However, it was relatively easy to get a WordPress site working. I was previously using Pair’s Managed WordPress Hosting, and it was working fine. No complaints. And it has some nifty features such as built-in backups and staging. But I recently switched to Pair’s Fully-Managed VPS Hosting. I am using their entry plan, VPS Starter I. I don’t have to take care of the hosting or email environment, but I still have the “user” shell access where I am able to “tweak” my website and related tools. It is working very well.

For example, I wrote a simple shell script that I can run on my Mac to backup my VPS user account, which includes my Altoplace website. To use this backup script, I first set up SSH to login without a password. Next, I installed WP-CLI on my Mac and on my VPS and set up WP-CLI Aliases to point to my website. Finally, I used Homebrew to install a newer version of rsync on my Mac, which seems to run faster. This is my shell script which backs up to my Document folder (which is automatically backed up to iCloud):


dbfile=wpdb-$(date +%Y%m%d-%H%M%S).sql

echo; echo "Dump the remote database ..."
wp @apcom db export /usr/home/vpsuser/backup/${dbfile}
if [ "$?" != "0" ]; then
  echo; echo "ERROR: Remote database dump failed ..."
  exit 1;

echo; echo "Delete the older remote SQL files ..."
ssh vpshost 'find backup/*.sql -mtime +15 -exec rm -rf {} \;'
if [ "$?" != "0" ]; then
  exit 1;

echo; echo "Copy the remote files and database to ~/Documents/vpshost ..."
/usr/local/bin/rsync -az --delete --exclude '.opcache' \
  vpshost:/usr/home/vpsuser \

echo; echo "bkup-vpshost: All done!"
exit 0

Later, I can write a post with the details about how I setup SSH and WP-CLI. For now, I hope this post illustrates the power of having SSH shell access to a VPS.

Over the next few weeks, I hope to be better about writing posts and sharing about what I am learning. Again, being retired, it’s something that I enjoy doing. May be I will be able to share helpful information. That’s my desire, along with learning new stuff.

I have also been tweaking my WordPress settings; more about that later.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.