I bought a few more domain names on a whim

Listing them here as a reminder, and also to get the sweet, sweet, SEO baby!




Currently that all point here, but I’ll figure out what to do with them at some point. I was thinking for the .lol one, I could slap together something that would turn all the body text of this site into something funny, and output it to chrisweber.lol.

Website Backup


I’ve tried several backup solutions for linux, and I wasn’t able to find something that did what I wanted.  Backula was way too much work to set up.  I actually spent several hours installing and configuring a web interface for Bacula to make it easier, but once I got it all up and running I found it was just a reporting tool.  Bacula is more for an enterprise with hundreds of servers to backup.  Backuppc wasn’t really flexible enough.  I read through various tar backup scripts and finally decided to install Powershell on the server, and see about writing my own.  Then, I realized that I need to conceptualize what I want to accomplish, before I decide what tools to use…  So this document.  


The major components are going to be the website, database, and all of /etc at least.  I also think a backup of the installed packages should be good.  I don’t want a large backup.  I don’t really think I should have to dedicate 30 GB to it.  One hiccup is that I want it to be stored on my Win 10 PC, so it can be synced with a google cloud account.  One of mine has a TB, so there should be plenty.  


  • DB – I’m guessing the output of this will be small, but testing
    mysqldump –all-databases > dump.sql

Only 2.8MB  ~ 84 MB per month

  • WordPress – everything appears to be under /var/www, so I’ll just tar that whole bitch up.
    sudo tar -cpvzf website.tar.gz /var/www/
    142MB – this might require incremental.  4.3 GB per month.  
  • Packages – apt-clone doesn’t appear to be a base package, but seems to be exactly what I want, so the command below will work.  I don’t really see needing more than one of these, but the files are small enough that 30 days would be fine. 
    sudo apt-clone clone <filename>  

Backup is 22k which is not worth my time to do the math.

  • /etc – super important because I don’t know how many hours I’ve dumped into this server.  Way too long to not have a backup. 
    sudo tar -cpvzf etc.tar.gz


  • Hourly
    • In “hourly” folder we’ll have tar archives labeled 1-24
  • Daily
    • In “daily” folder we’ll have tar archives labeled 1-31
  • Monthly
    • In “monthly” folder we’ll have tar archives labeled 1-12

Code example

# Chris Weber
# 4/16/2021
# Updated
# Backup solution for web server

# Get day of month
$Hour = get-date -Format "hh"
# backup storage
#$backupStore = "/media/backup/hourly/$Hour"
# Generate backups and put in tmp
Set-Location -Path "/tmp"

# DB
/usr/bin/mysqldump --all-databases > db.sql

# Website
/usr/bin/tar -cpzf website.tar.gz /var/www/

# Packages
/usr/bin/apt-clone clone /tmp

# etc
/usr/bin/tar -cpzf etc.tar.gz /etc

# Move stuff to the place
Move-Item -force -path /tmp/db.sql -destination /media/backup/hourly/$Hour.sql
Move-Item -force -path /tmp/website.tar.gz -destination /media/backup/hourly/$Hour.website.tar.gz
Move-Item -force -path /tmp/apt-clone-state-thecweb.com.tar.gz -destination /media/backup/hourly/$Hour.apt-clone-state-thecweb.com.tar.gz
Move-Item -force -path /tmp/etc.tar.gz -destination /media/backup/hourly/$Hour.etc.tar.gz

Issues to fix!!!1!

  • Hourly backup is only doing 12 because I didn’t specify 24 hour time format when setting $hour

Update to the camera

The wire came off before I could get anything connected, and the pad came off with it, so I gave up. Bought a Nest Video door bell instead. I like it a lot more.

$30 camera project

Got this cheap-ass camera on Amazon. It does 360 rotate, and like 120 tilt. The software sucks ass. It’s got the same chip as much nicer systems. Ingenic T20 is the chip. I’m going to attempt to load custom firmware to take it off the cloud, and I’ll run stuff internally.

Following info from here: https://medium.com/hackernoon/hacking-a-25-iot-camera-to-do-more-than-its-worth-41a8d4dc805c

Monster Insights installed

I’ve had quite a few comments left on my site, the vast majority are obvious spam. Some don’t really seem to be though, or at least I can’t figure out what the end game is of comments like “great read, keep it up!” and crap like that. Maybe those are there to check if they can leave comments, and then they start the spam? I don’t know.

So any, I installed this plug-in and setup Google Analytics. Just the free monitoring on both systems, but this should help me decide whether I’ve had any real human visitors. I’m assuming not.

Clueless and Postfix

Clueless is on netflix, so I watched it tonight. Quite a few jokes went over my head when I was 13, but that didn’t stop me from watching it over and over again. I’d seen it too many times to actually sit and watch it, so I started setting up Postfix using this tutorial from Linux Bade. https://www.linuxbabe.com/mail-server/setup-basic-postfix-mail-sever-ubuntu

Installed postfix, and attempted to send a message to my gmail. Postfix send me an NDR with error code 550-5.7.1. Looks like one of the reasons is I don’t have an IP6 PTR record… which is weird. I don’t know why google would assign an IP4, and not an IP6. Oh well, I’m sick of screwing with it for today.

I’m typing this from my Dell XPS 13 ultrabook. Ron Swanson knocked a glass of water on it a few weeks ago, and I finally got around to completely dismantling it to find the damage. After removing the wee little mother board by the pen, I found some corrosion on the underside. I has able to use a damp paper towel to clean some of it off. Then I used my phone as a magnify glass, and a scrapper to get in between the leads on the IC. Followed it up with a brush from a sneaker cleaning kit I had laying around. And to my surprise it powered back on, and booted to Widows without issue, I thought for sure I was writing off a $1200 dollar laptop.


I’ve been busy the past few weeks. Work paid for a week long course to prepare me for the Microsoft 365 Identity and Services exam. I didn’t really like the instructor, but the labs and book have been helpful. We could tell from the syllabus that the instructor was not ready for a class as experienced as we were. He had the first hour set aside to help us get our lab environments up, but we had all already prepared before class started. He had another hour set aside to help us get our e-book, which we all downloaded before class started, so he had us stop for the day after lunch, so that he could prepare more material.

Work was fun today. One of our clients uses on-prem Lync 2013 server. AKA Skype for business. Their call center complained that when they tried to transfer calls direct to someone’s voicemail, the transfer failed. After a couple hours of pouring through logs, and making test calls I found that their voicemail had completely stopped accepting messages the morning before. So far, no one had noticed the extent of the issue. Exchange Unified Message requires a certificate which can’t be self signed to accept voicemails. It doesn’t require a internet CA certificate, so we were able to issue one from the DC and get voicemail working again. Learned a lot, and had fun fixing it. Was about to give up a couple times, but then I’d find another clue that got me closer.

Setup WordPress

Decided to do something with an old small form factor Dell I had lying around. Has a 120GB SSD, some sort of intel i5, and 8 GB of RAM.

I started by installing Ubuntu Server 20 LTS. Simple. Using apt-get to install apache2, mysql, and a few modules for both was a little more challenging, but still pretty easy.

Bought a domain name off of NameCheap for like 9 bucks a year. And here we are. Not sure if I’ll ever bother posting again. Just seemed like a fun way to spend some time. Next I’m thinking about adding postfix and hosting my own email server. That will be much more challenging.