Categories
Code PHP Servers

Auto-deploy your PHP app with Bitbucket Pipelines

I’ve got to admit – I’m old school! Then we moved to subversion, woah, this is cool! Then SSH to the relevant webserver, cd to the right dir, and calling svn up, that’s progress! Then we introduced load-balancing and multiple app servers, so we wrote a bash script we can call from our mac’s that […]

Categories
Linux mySQL Servers

Hourly MySQL Backups with a BASH Script

Here is a script I recently wrote to run hourly backups of our production database server.It’s important to note here a couple of things;  This *could* use a lot of disk space! Backups are processor heavy, I’m running mine on on a dedicated VPS connecting to the SLAVE in a MASTER => SLAVE SLAVE replication […]

Categories
mySQL Servers

Finding disk usage on Linux/Ubuntu

There are a few ways to see how much free or used disk space in linux;The  easiest way is to use: If you want to drill down and find where all your disk space has gone, then ncdu is the best too, all day. On Ubuntu you can apt install this repo, else there are installation instructions […]