Categories
Learning Journal

Backup WordPress UPLOADS folder

I develop my web sites from more than 1 computer typically. So, in the case of all my web sites developed with WordPress, I need to have a local copy of the wp-content/plugins and wp-content/uploads folders on each development machine if I want to test anything for my web site locally — on my laptop, for instance — before pushing it back out to the web server.

FYI: Computers, laptops and servers I use are all powered by Linux.

Categories
Learning Journal

Is MySQL Up?

These days I’m trying to develop a BASH script to help me copy quickly my MySQL database from my (live) remote site straight into my PC, where I do all my development work. Right at the top of the script I was writing, I needed a way for the script to figure out if the (development PC‘s) MySQL server (mysqld) was already started and running. And if not, to let me know.

Categories
Learning Journal

Running Linux Programs at Boot Time

If, like me, you want to easily have some program start every time you boot up your Linux server, you need to find and edit the rc.local file in your file-system. /etc/rc.local is really a simple place to put shell commands and/or scripts you want to run when booting up.