VPS backup script – automated Ubuntu

You’ve spent hours configuring your Virtual Private Server exactly the way you want. You have everything working, even that infuriating WSGI module in Apache to run multiple Python apps… Maybe I’ll do a write up of that soon. But for now what if your VPS provider has a bad day and loses everything? It would be silly to not backup your VPS. And it’s easy to do. I’ve written an automated script to take care of it. Let’s create a backup script. nano /home/username/scripts/backup.sh Alright. Lets put the following in the file. Tailor to your needs. I’ll explain after. #!/bin/bash […]

Dynamic DNS update from cron

We can use crontab to update our Dynamic DNS. It’s a nice feature and super easy. Who wants a whole application dedicated to telling a remote server your IP? Create a script, not necessary, can do it right in crontab, but why? make a script. If you don’t have a scripts folder in your home directory make one. mkdir scripts I’m not here to teach you basic bash commands. nano /home/username/scripts/update-dns.sh   Put the following in the script.   #!/bin/bash curl https://your-registrar-will-give-you-this.com/update?host=@&domain=xxxxxx.com&password=xxxx   OR, I use this one now, but same concept (the q tells it to be quiet and […]

NFS on Raspberry Pi with ufw, NTFS, and connect from KODI

So here was the problem. I have an NTFS external usb drive I wanted to connect to my RPi home server and share with NFS to an Amazon Fire TV with KODI. Couldn’t get it for the life of me. KODI wouldn’t even see the NFS server in browse. Finally figured it out. Firewall problem. So first part sets up regular NFS with an NTFS drive on an RPi suitable for NFSv4. The second part setups up for KODI devices. And finally I add Samba as a backup.   Part 1: Mount the drive.   Obviously plug in the harddrive. […]