WordPress Backups Using UpdraftPlus and Amazon S3

I had a bit of a disaster the other day – I went to link to a blog post from a few months ago and it wasn’t there! I remember writing it, and knew it had posted, because I remembered some of the comments from when it appeared on my Facebook profile. I then remembered that there had been some funny goings on with the WordPress Mac app, I’d had a duplicate post and deleted it manually. However now it seems like the duplicate had also been deleted.

Of course it was at this point I realised that my latest backup was a couple of months before the post and I couldn’t recover it from anywhere. I was particularly annoyed at myself because I have a thorough backup routine for my Macs and especially my photography work, yet virtually nothing for my blog. However, it was the kick up the backside I needed to sort out a decent backup routine for my blog!

Given that I was the weak link when it came to backing up my log I wanted something automatic, that would run regularly and email me when it had completed. As with most things WordPress, there seemed to be loads of plugins available, most of them paid services. In my research I’d read good things about UpdraftPlus, so was pleased to find their free option, which is more than powerful enough for a small blog like mine.

To see if it UpdraftPlus lived up to the hype, I downloaded it onto my WordPress development environment (Chassis running on my iMac) and had a play. Looking at the list of remote storage services Amazon S3 was the obvious choice, as I already use Amazon Web Services to host my blog. Knowing the basics of cyber security, I only wanted UpdraftPlus to have minimal access to AWS, I had got myself lost in a maze of IAM, S3 buckets, users, groups and permissions. I was on the right track but this post on the UpdraftPlus blog, told me exactly what I needed to do. The IAM Policy Simulator on AWS was also a huge help in making sure my policies were both written and applied correctly. I went for the maximum security option, which also gave me a chance to delve into the workings of S3, setting up rules to archive then delete the data after periods of time.

Once deployed and tested on my development environment, it only took a matter of minutes to get working on my live blog, giving me regular, automated backups. Now the only task left to do is do rewrite the post that got lost…

Long Weekend in Yorkshire

Jen’s fitness goal for 2017 was to run the York 10km race, and as our main family holidays were earlier (Croyde) and later in the year (Cyprus), we decided to take a few days off work and turn it into a summer mini break.

Our first stop was with our friends, Helen and Phil, in York. Phil and I, along with his son William, had been planning a bike ride whilst the girls ran their race on Sunday morning. However, that plan was vetoed, so we sent Owen and the girls into town and went for a bike ride on the Saturday afternoon instead. Phil had chosen a great route, with some off road sections and a stop at an ice cream boat! After the bike ride Phil fired up the pizza oven for a pizza party! Our other friends, Hayley and Will and their children, also joined us. The kids all had a good time together, especially once the bouncy castle was set up. Owen was the youngest there, but got stuck in playing with the bigger kids, even if he couldn’t keep up with them. We all had a lovely evening eating pizza and playing with the kids.

I woke up on Sunday with a dodgy belly – thinking that I’d disproved my theory that “there is no such thing as too much pizza”, and discovered the “pizza hangover”. However, in reality I think I’d caught the stomach bug that Owen had earlier in the week. Unfortunately he seems to have spread it to everyone he came into contact with at the weekend. Phil and I took the kids to the Knavesmire to watch the start of the race, then walked further down the course to cheer the girls on, managing to spot them in the crowd of over six thousand runners. After the race we went to Hayley and Will’s for a BBQ. I cycled over with William – I think we were both still excited about our new bikes, so didn’t need any excuses to ride them. It was less than half a mile up the road, but as William is only just starting to ride on the road I felt a great responsibility. I can’t wait until I am able to ride with Owen. Owen must have sensed this, as at the BBQ he was sat on a little trike and looked so pleased with himself. He sat on it for at least half an hour – he never sits still, so this was unheard of. After getting off the trike he crawled over to my bike and looked at it as if that was his next target now that he’d “mastered” the trike. After the BBQ we drove to our next stop an Airbnb in a secret valley in the North York Moors. It really was in a secret valley – located about a mile from the nearest road, but the hosts were lovely and the cottage was perfect for the three of us.

I woke up feeling much better and snuck off for an early morning bike ride. The Airbnb was on some trails mentioned in my Good Mountain Biking Guide book – this was genuinely a complete coincidence! As I didn’t want to eat too much into our day, I did a shortened loop, which started with a brutal climb up through some sheep fields. Looking back towards the Airbnb I could see how it got its “Secret Valley” name – you couldn’t see it at all! The next section of trail was really boggy and just as difficult as the climb. Fortunately the return leg was much more fun, except for the part where I came round a corner and hit another boggy section. The bike stopped dead, but I carried on into the bog. By the time I got back down to the secret valley I was covered in mud, but had a big smile on my face.

After a quick shower we went to Helmsley to meet another of our friends, Els, who had got the bus out to meet us. After a brief tour of Helmsley and some elevenses we all set off to the seaside! When we got to Scarborough we quickly checked off a lot of the traditional seaside activities – fish and chips, 2p machines and slightly disappointing funfair, before heading onto the beach. Owen loves playing in sand, so he was in his element, digging, crawling and throwing sand around etc. I’m sure he could have stayed there all afternoon, but we had to meet Jen’s cousin Virginia, who we have stayed with on previous trips to Scarborough.

We had a nice catch up before driving back to the Airbnb. Before dinner, we had a visitor to the cottage – Vinnie, the owner’s puppy, who befriended Owen. They crawled around the cottage after each other and seemed to be having a great time together. All the reviews had mentioned how good the food was, so we were very excited about dinner. We had lamb tagine with roast potatoes, and homemade bread to mop up the sauce. All of the ingredients came from the farm, from the lamb, to the pickled wild garlic seeds and the wildflower garnish. It was one of the best meals we’d ever had! Jen has said that she is going to try and recreate it sometime – which I am looking forward to. For dessert we had mille feuille and the custard was infused with flowers from the local hedgerows. It wasn’t something I would have chosen from a menu, but I really enjoyed it.

Our last day in Yorkshire started with a pre-breakfast walk up the farm track, with Owen on my back, to see a calf that we’d noticed on our way out to Helmsley the day before. When we got to the field it mooed at us, then walked over to see us. It certainly liked the attention. We had breakfast at the Airbnb, which was just as good as dinner the previous evening. I was actually quite sad to be leaving the secret valley, I could have spent another day there.

The original plan had been to call in at Yorkshire Sculpture Park on the way home, but given that the weather forecast was for heavy rain we decided to go to York Designer Outlet for some shopping. It was Jen who wanted to go shopping, but me that ended up buying loads of things – new work shoes and Jen’s Christmas present, which she had already been dropping lots of hints about. The real winner was Owen, as you can hire little cars to wheel kids about in – he absolutely loved it! After pizza for lunch we drove back to the shire, the heavy rain didn’t let up until we got to Nuneaton for a quick stop off with Jen’s Mum and Dad. All the way down the motorway I had been trying to work out if I could get the car back home just as it clicked over to 75,000 miles, but the odometer just clicked over to 74,999 as I pulled onto the drive.

Monsal Trail Time Lapse

On Sunday Jen, Owen and I travelled up to the Peak District to cycle the Monsal Trail with our friends Ali and Jaymi. It was meant to be a bigger crew, but some people dropped out with flimsy excuses. They really missed out though, it was a fun afternoon. The cycling was a polar opposite to Llandegla last weekend, even riding at my slowest (with Owen on the back of my bike) I was the one stopping and waiting for the others to catch up. There was plenty of time to chat whilst riding along and Owen seemed to like having people to interact with. He also enjoyed the tunnels, he was clapping as we cycled through them. The time lapse doesn’t do the views justice, the scenery on both sides of the trail was stunning – with cliffs, rivers, hills and old buildings to pull your eyes away from the trail. Naturally, the ride ended with a cafe stop at Hassop Station, for burgers and bakewell pudding.

Llandegla

Last weekend I took a trip up to Llandegla, for what was probably my toughest day on a mountain bike. Llandegla is the nearest Welsh trail centre to Coventry, and had been top of my list of places to ride for a while. It also meant I could tick off one of my 2017 goals.

I left a grey and rainy Coventry, hoping that the forecast for sun in North Wales would be correct. Fortunately it was, with the rain clearing before I got to the end of the M54. I met my friend Andrew and his friend James at the visitor centre. We set off up the five kilometre climb, which is the start to all the trails at Llandegla. It is a fairly gentle climb, but felt relentless. My legs, and lungs, are used to much shorter climbs, so I struggled, eventually catching up with the guys at the top.

The ride down the hill was almost as punishing, mountain bike trails are graded like ski pistes: green, blue, red and black, increasing in difficulty. We took the red trail, but included one of the black loops off the main trail – my first time riding a black trail. After the long climb I was expecting it to be downhill all the way back to the trailhead, but the trail was peppered with steep climbs. The downhill sections didn’t offer much chance to recover, they were rough and bumpy, with raised wooden sections and plenty of jumps. I was struggling due to being at my limits of fitness and bike handling skills. The guys had to wait for me to catch up quite a few times, but I eventually made it to the end in one piece, still buzzing from the ride down. As it was such a lovely afternoon we chilled out on the terrace outside the amazing cafe and I really felt like I’d earned my bacon sandwich and slice of cake.

Suitably refuelled and aware that I needed to work on my fitness, I decided to do a solo loop of the blue trail. I took my time on the climb, with a few stops to catch my breath and take photos. I made it to the top without having to push the bike, despite it actually taking longer than the same climb in the morning. Dropping in to the blue trail I was back in my comfort zone, the trail was much smoother and only had a few gentle climbs as it twisted back down the hill. It was also much quieter, I only saw a handful of other riders. After struggling on the red/black loop in the morning, the blue felt like the perfect place to concentrate on my technique and have some fun.

Both loops were enjoyable in their own ways. The red/black trails challenged both my skill and fitness, but the whole point of a sport like mountain biking is to push yourself. The blue trail was easier and flattered my riding. I was glad I went back to the top again. At two hours door to door, Llandegla won’t be replacing Cannock Chase as my usual trail centre – it is a full day out, rather than just a morning. However, I am looking forward to a return visit, hopefully my fitness will have improved by then too!