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 […]