WordPress backup

Not long after I first moved this blog to WordPress, I installed the UpdraftPlus plugin for site backups. I’ve been using the free version for the last couple of years, and it works fine. I have it configured to simply back up to local storage on my web host, and I hadn’t really thought about it much since I set it up. But of course backing up files to the same place that’s hosting them isn’t a great system. It’ll protect me against some possible issues, but it won’t be much help if something happens with my web host and I lose access to my account, or if someone breaks in to my account and deletes or scrambles all my files.

UpdraftPlus supports copying its backup files to DropBox, Google Drive, or several other possible offsite destinations. I don’t know why I’d never set this up, but I decided that it was past time I did that, so I started messing around. I found that the DropBox support was easy to set up, but just didn’t work for me. It would partially copy the backup to DropBox, then it would get stuck and never finish. This has got to be some kind of configuration issue on my host; Updraft is a pretty mature plugin and it gets updated frequently, so if there was some general issue with Updraft’s DropBox support, they would have fixed it.

I didn’t want to spend a lot of time trying to figure out the DropBox issue, so I thought I’d just try Google Drive instead. The Google Drive support requires getting an API key from Google. Updraft’s documentation has a good write-up on how to do that, but Google has changed their interface for doing that, so the write-up didn’t quite match the interface. I probably could have stumbled my way through it, but I decided to punt on that too, since there was a good chance that whatever issue was causing the DropBox backup to be so slow would affect Google Drive too.

So I went looking for another alternative. Updraft supports several other services, including OneDrive, which would have been my preferred alternative anyway. But OneDrive support isn’t included in the free version, and I didn’t want to pay for it, only to find out that it had the same problem as DropBox.

In the end, I decided to continue letting Updraft back up only to local storage, and then copy the backups to my Mac with a script that I could run locally. After flailing around a bit with a few options, I settled on using rsync. I’ve always connected to my web host with SSH, and rsync uses SSH to connect, so that worked fine.

One other related thing that I had never gotten around to setting up is key-based auth for SSH. I’d simply been connecting to my host with my user name and password. And, embarrassingly, I’d actually had a pretty simple password on my account until recently. I set a more complex password recently, so getting the public/private key auth working was something I really needed to do too. Well, it turns out that wasn’t nearly as complicated as I (for some reason) thought it would be. I just had to generate a key on my Mac, and then copy it into an authorized_keys file on my host.

I have Updraft configured to send me an email every time it finishes a backup. (I do weekly backups.) So now, every time I get that email, I just need to run a shell script that runs rsync and copies the backup down to my Mac. Easy enough. A fully-automated solution would be better, and maybe someday I’ll talk myself into paying for UpdraftVault or VaultPress, but I should be fine for now.

more WordPress updates

After updating my 1&1 environment from PHP 5.4 to 5.6 this morning, I decided to check for WordPress plugin & theme updates tonight. I had a few plugin updates, plus a surprise theme update. The base theme for this site is Stargazer, from Justin Tadlock. There hasn’t been an update to it for a while. (Which is fine; it’s quite stable and I haven’t had any problems with it.) But I see he released version 2.0 recently, so I went ahead and updated it. As far as I can tell, nothing is broken. Theme updates can sometimes be tricky, especially if you’re updating the base theme for a child theme that you’ve hacked together yourself. But everything looks OK, so far.

I’m way too tired to look into what’s been changed in Stargazer 2.0, but hopefully I can check on that at some point. I haven’t done anything at all with this site’s theme lately, so maybe it’s time to mess around with it a bit!

PHP 5.6

I got an email from 1&1 this morning, telling me that if I didn’t switch from PHP 5.4 to PHP 5.6, I’d be subject to a $7.19 monthly “extended support” charge for using an old version of PHP. Fair enough, I suppose, though I didn’t even realize I was still on PHP 5.4.

I remember at some point in the past either updating it, or trying to update it and failing, but that was probably a long time ago. Maybe that was from 5.2 to 5.4 or something like that.

Either way, this site should now be on PHP 5.6. This post is basically just a test to see if the site still works. I don’t think I have any WordPress plugins that won’t work under 5.6, but I guess I’ll find out soon.

Blogging tools

I played around with the WordPress.com app for Mac a couple of weeks ago. I used it to write a few recent blog posts, but I’ve mostly gone back to just using the regular WordPress admin. The app is nice, but it’s not really that much better than the regular admin pages.

The WordPress.com app is now also available for Windows. I’ll probably install it on my ThinkPad at some point and give it a try. And, interestly, Windows Live Writer has (finally) been open-sourced and released as Open Live Writer. Windows Live Writer had a really good reputation as a great tool for authoring blog posts, and I know at least one guy who used it with WordPress and liked it. Microsoft pretty much abandoned it in 2012, and there’s been talk about open-sourcing it for quite some time. It’s great that they’ve managed to do it. I know it’s not easy with software like this that comes out of a large company.

The new WordPress application

I thought I’d give the new WordPress app a shot. It’s not bad, and may be good enough that I’ll start using it regularly for writing posts. It allows for quick switching between WYSIWYG and HTML views, as the normal WP admin page does, which was an issue with the other Mac blog authoring products I tried.

The “preview” button doesn’t seem to do anything though. I’m probably missing something there. Maybe I need to configure something first? Well, let’s see if the “publish” button does anything…

 

Trying out Blogo

So now I’m trying out Blogo, another Mac blogging tool. It’s kind of nice, but there doesn’t seem to be any option to view/edit a post in HTML; there’s only the rich-text WYSIWYG editor.

So I think maybe this would be a good tool for someone who didn’t want to get too fiddly and just wanted to stick to WYSIWYG editing. But I know I’m going to want to at least look at the HTML once in a while.

It’s kind of a shame that it doesn’t have HTML editing, since, otherwise, it’s got a really nice user interface. But, I think MarsEdit is more my speed, if I’m going to use a desktop editor at all.

trying out MarsEdit

I’m writing this post in MarsEdit, just to see if I like it better than the normal WordPress admin interface. So far, it works fine, but I’m not sure it’s that much better than just using the WordPress admin. I think maybe if I could memorize the keyboard shortcuts, it would be quite nice.

I’ll keep it on my Mac until the trial period runs out, at least, then make up my mind if it’s worth spending money on.

I’d heard of MarsEdit before, of course, but hadn’t really thought about it much lately. I was reminded of it when listening to MPU 264 with John Gruber. He uses MarsEdit with Movable Type, which I did not realize was still around and being used as a viable blogging platform. (Shows how little I know!) I’ve never been that interested in Gruber’s blog, Daring Fireball, but he does have an interesting history, and has been involved in some interesting work, so that episode of MPU was definitely worth listening to. And of course his big thing is Markdown, which the MPU hosts also love, but which I’ve never been able to talk myself into trying. I like the general idea, but I just haven’t been able to find a good use case for it, for myself.

lots of WordPress updates

My site updated to WordPress 4.1.3 automatically this morning, only a few days after updating to 4.1.2. And now, WordPress 4.2 is out. I just went ahead and manually updated to 4.2, and applied a handful of theme and plugin updates.

It’s good to see that everyone is keeping WordPress up to date, patching security issues and adding features. Honestly, though, there have been a lot of updates in the last few weeks. Let’s all take a break for a few days, ok? 🙂