Saved by the Backup

In my last post I explained about my back up routine for WordPress, I wasn’t planning on testing it out so soon, but it has just saved my bacon! The plan was to spend an hour or so tweaking the blog to make it faster, by using the WP Super Cache plug in and Amazon Cloud Front, however something went badly wrong! The alarm bells should have started to ring when I noticed that most tutorials about using Amazon Cloud Front with WordPress referred to W3 Total Cache, however I preferred the look of WP Super Cache and fancied a challenge…

I was loosely following this guide, but somehow managed to take my website offline, probably by sending requests into a DNS blackhole. The problem was this meant I couldn’t get back onto my website to turn the caching off again. At this point I would also like to add that I couldn’t test this phase on my development server, as Cloud Front needed to pull data from the blog, which meant deploying on the live site.

I could still SSH into the server, so used the WP Super Cache uninstall instructions for “if all else fails and your site is broken”. However that didn’t help. At this point I was getting a little bit more panicked, but was very glad of my new backup strategy and that I’d had the foresight to make a backup just before I’d started fiddling with the blog. I feared the worst, that I would have to reinstall WordPress again from scratch and reload my data, reading this troubleshooting guide confirmed my fears.

Reinstalling WordPress isn’t the end of the world, I have done it a number of times, but for some reason I have been having a lot of permission issues on my web server, maybe I had taken security a bit too far. This meant that I couldn’t get my FTP client to upload my backup data. I ended up revisiting the AWS WordPress installation guide and also this blog post to find the correct settings and set them via SSL. At least I’ve had a lot of command line practice this evening!

Even with the permissions fixed, I couldn’t use the restore tool on Updraftplus (possibly due to restrictions I have added on AWS?), but was able to upload the data via FTP and got the blog up and running again. I still haven’t got the caching/CDN set up, but I think I’l take the easy route now and hopefully not need to test my backups again.

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!

Owen in the GMBN Bike Vault

Screen Shot 2017-07-22 at 07.39.42 2

I’ve been a fan of the GMBN YouTube channel since it started and have had many attempts to get my bike included in their Bike Vault feature. Finally it happened, and with a “Super nice” rating to boot. I had to use my secret weapon – Owen, I had a feeling his cuteness would work. It was especially apt as the theme of the show was “mountain bikers of the future”. I’ve embedded the full episode at the bottom of this post, or click here to go straight gto Owen at 19m35s.

The photo was taken at Kingsbury Waterpark, whilst Jen was doing Parkrun there – something we are trying to do more together – like our ride around Draycote Water last weekend. We have also got a few more family rides planned over the next few weeks.

Cycling Around Draycote Water With Owen

We had a fun family trip to Draycote Water at the weekend. Jen is training for a 10km running race, so we thought that the 5 mile tarmac path would be ideal for her to run round whilst Owen and I rode round on my bike. I figured that Owen and I would be able to do two laps in the same time as Jen could run one – so we had a bit of a race!

Team Bike were caught napping, literally – Owen had fallen asleep in the car on the drive over. Jen was able to get a good head start, whilst I got the bike and child seat ready and waited for Owen to wake up. When we got going I wasn’t sure how long it would take us to catch up with Jen, but we made good progress along the first dam thanks to a decent tail wind. However, when we hit the north shore the pace dropped, I’d forgotten how hilly the route was, the fact that I’d done a hilly 35km ride the previous day and was carrying an extra 15kg made the hills feel harder. I was still expecting to see Jen around each corner, but we eventually caught her up around the halfway point, and had a quick stop to have a drink and fuss over Owen.

Leaving Jen, we continued our lap now into a headwind on the west dam I pointed out the wildlife to Owen, we saw geese, swans, rabbits and even a heron! On completing the first lap, we stopped for some photos, and to look at a swan and her cygnets by the dam. The second lap felt quicker, but taking a break had been a mistake, Jen was waiting for us at the end. As Owen had been such a good boy sat on the back of my bike, we took him to the playground, where he particularly enjoyed “driving” the jeep on springs.

2017 Goals Update

At the start of the year I posted my goals for 2017, as we are halfway through the year I thought I’d follow up on them and post my progress.

Get my weight under 90kg – and keep it there

My weight has been under 90kg for most of 2017 so far, I actually reset my goal to 87kg. However we went on holiday to Croyde and too much holiday food was enjoyed, so I crept back over 90kg, but I am back under now and still aiming for under 87kg.

Do a trackday at a new track in the MR2

I’ve failed on this one so far, I did a track session at Silverstone, but since then I haven’t done much with it. It really needs a suspension refresh, so I am a bit reluctant to go on track before that is done. I will see what happens over the next few months though.

Ride my bike at a new trail centre

Most of my riding has been local so far in 2017, with only a couple of trail centre visits. I went to the Leisure Lakes Demo Day at Cannock Chase in March, I also took my new bike there last weekend. I have got plans to ride at Llandegla trail centre in Wales in a few weeks time, so not too worried about missing this goal. What I have rediscovered this year is cross country riding on unknown trails, I had a really good ride from my Mum and Dad’s house, exploring the Cotswolds and tried out a fairly local route, which in future I may build into a longer ride from home. Riding on natural terrain on bridleways has opened up a whole new area of mountain biking for me, one which I should be delving into more over the coming months.

Ride the full Monkey Trail at Cannock Chase in one ride

Not yet! Although I’m pretty sure I could have done it last weekend, except I was running late. My excuse is that Owen slept in and didn’t wake me up. I’m sure I’ll get back to Cannock later in the year and complete the loop.

Get out on my bike with my camera

I have been taking my pocket camera – a Canon S90, with me on my bike recently. I am interested to see how photos from the old camera compare to my iPhone 7, which I will probably go into on a future blog post. I still have plenty of time left to get out with my DSLR though, ideally early one morning for some landscape photography.

Make yoga a part of my weekly routine

I’m going to claim a partial success on this one! I went for a yoga class with Jean a couple of weeks ago, and have been doing some yoga most days since. I just need to keep it going! I have also found an interesting yoga series on Pinkbike, one of the biggest mountain bike websites, so I intend to work through some of those exercises.

Overall I think I’m pretty much on track, with the exception of actually getting my MR2 out on track! The main thing is that I am doing well on the fitness ones, which are usually the new year goals that go out of the window first.

New ride – Orange Four

Four in the graffiti tunnel

After almost four and a half thousand kilometers on the cheap hardtail bike I bought back in 2014, I have treated myself to a much better bike – an Orange Four Pro. In my post about trying one out earlier in the year, that I said the Orange Four was my dream bike, but I couldn’t afford one. In the three months since posting that I applied some man maths, working on the basis that it was worth paying a bit more for a bike hand built in the UK. In the end I found a really good deal from Sunset Cycles, the only downside is that I was restricted on colour, so ended up with my third choice colour. A fresh factory order would have been built just for me, but cost significantly more and would have taken a month or two to arrive. Even I am not fussy enough to have gone for that option! It is a similar situation to when I bought my MR2, the best deal had metalic grey paint, so I just went with it, despite it not being my first choice. At least with an Orange bike it is easy to send it back to the factory for a repaint.

The Four is the baby of the Orange full suspension range, but perfect for the type of riding I do – more cross country exploring with the odd trail centre visit, than extreme gravity riding. It is a big jump up from my old bike, which I will be keeping for riding around with Owen on the back, or running errands into town etc. The upgrade is of a similar magnitude to when I went from my Rover Metro to my first MX-5. Although in that case the Metro went to the scrap yard. Since ordering, I have discovered that there is a whole commintiy of Orange fans out there, on Facebook and on the trails. I’ve even had other Orange riders chatting to me about it!

A massive box got delivered on Friday, whilst I was at home looking after Owen. I was like a kid before Christmas waiting to open it and get the bike built, however I had to wait until Owen was in bed. By the time I got the bike built I only had enough light left for a very short shakedown round the block, which was enough to tell me that there was an awesome bike a few small set up changes away.

On Saturday, after fiddling with the suspension settings, I managed a blast round my urban woodland loop. These are trails that I know well, including a short test loop I use in Plants Hill Wood, which packs a lot of varied terrain into 500 metres. A rooty downhill section, which smooths out to a twisty flat section then a short technical climb back to the start – perfect for comparing different suspesion settings. After the ride I did some fine tuning to the suspension and cockpit setup, but I was pleased overall. I even stopped to take some photos, including the one at the top of this post. The only problem I encountered on the ride, was that handlebars are wider than on my old bike and don’t fit through some of the anti-motorbike gates on the trails. I do have the option to cut them down, but I want to ride with them as they are for the time being, as cutting them is permanent.

The shakedown and local test ride were needed as I was taking the Four to Cannock Chase on Sunday morning, the trails there are much more challenging than the urban woodland loop. I did a lap and a bit of the Follow the Dog trail, I didn’t have enough time for a lap of the Monkey trail as my cute alarm clock (Owen) decided to have a Sunday lie in, so I slept in too. I was a bit reluctant through the first section, “twist and shout”, as it twists between trees and I was concious of the wider bars – it is only 2cm extra on each side, but some of the gaps are pretty tight! I was feeling much more confident when I got to “cardiac hill” – my nemesis. The Four has lower gearing than my old bike and I was able to make it all the way to the top, without stopping and even overtaking someone on the way up. I felt broken at the top, but I still consider it a victory and had some celebratory jelly babies. What goes up must come down – and the Four was brilliant on the next downhill section, much more composed than my old bike, the dropper post meant I could throw my weight around to control the bike better too. I now fully realise why dropper posts are widely claimed to be the best invention in mountain biking. The next section had been remodelled since last time I rode it, cutting out a fireroad climb, which I consider to be a result. The next section, over toward the campsite was perfect for the Four, gently undulating terrain with rock gardens and the odd raised wooden section, I enjoyed it so much I looped back to ride it again! The last section from the campsite back to the car park was where I demo’d the Hope Four earlier in the year. My Four felt just as good as I remembered the uber high spec one I’d tested, which I am pleased about. With a few more small suspension tweaks, tidier routing of the cables and some thicker grips it will be perfect!

Parental Leave: Back to work

IMG_0477

Despite the title of this post, I didn’t go back to work on Monday morning. I had booked Monday and Tuesday off work as annual leave, due to Owen’s birthday being on the Tuesday and wanting to wait until after his birthday to return to work. This because the parental leave allocation is 52 weeks, rather than a full year. I was determined to go for a drive in the MR2 on our last day off together, even if it was raining. We drove down to Chipping Norton, with the roof up, to see my Mum and Dad. Owen had a huge lunch, then a long nap, fortunately we’d left his travel cot there from his sleepover last week. He really seems to feel at home at my Mum and Dad’s house, crawling everywhere like he owns the place! I didn’t get the roof down blast in the MR2 I’d hoped for, but we both had a good day out.

Tuesday was Owen’s birthday, I’m not sure he knew exactly what was going on, but did seem to like all the presents – he is a very lucky little boy! Later in the morning we met my Mum and Dad at the Transport Museum. I’m not sure that Owen was as interested in the old cars as I was though. We all had a big lunch at home with Jen’s Mum and sister too, then Owen’s birthday cake. After the cake my family left and more of Jen’s family arrived – with more presents (and cake). It was a busy day, but Owen seemed to enjoy himself, which is the main thing.

Wednesday was also a big day – Owen had his first full day at nursery and I was back to work. Owen had obviously recognised the nursery from his settling in session last week, as he started crying as soon as we walked through the door. Probably realising that we were going to abandon him. It was hard leaving him, especialy as he was so upset, but I had to get to work. Sitting back at my desk felt natural – I’m not sure if that is a good thing or a bad thing. The only indication that I had been off for two months was a bulging inbox, which I spent most of the day sorting through. When Jen picked Owen up from nursery we were told that he’d been fine most of the day, and had enjoyed playing with the sit in toy car they have there. Hopefully over the next few Wednesdays he will begin to realise that nursery is actually a fun place and not get quite so upset when we drop him off.

I was back at work on Thursday, but it was Jen’s day off to look after Owen. They went swimming, then to buggy workout – which sounded better than being stuck in an office all day! In the new regime Fridays are my day off to look after Owen, so at least I only had two days in the office this week. Our day wasn’t as exciting as Thursday – I think Owen must have picked up a cold at nursery, he had a runny nose and didn’t seem to be his usual cheeky self. So we mostly hung out at home, playing with Owen’s birthday presents. We did have one trip out, to the supermarket where Owen was his usual cute self, gaining even more admirers.

We had a relativly quiet weekend, as none of us were feeling 100% – I guess this is how things will be now that Owen is going to nursery. Jen still felt well enough to do Parkrun, so Owen and I went to the park to cheer her on and have a play in the sandpit. We spent the rest of the morning in town, grabbing lunch at the food festival. Owen had a taste of my chimichanga and Jen’s paneer wrap, seeming to like both. Sunday was another important day in Owen’s childhood – his first trip to a racetrack! We went to the British GT/Formula 3 meeting at Silverstone, as part of the Pistonheads Sunday Service. Owen did have a look at all the cars, but equally enjoyed having breakfast in the paddock cafe and crawling around on the grass banking on the inside of Copse corner. We spent the afternoon back at home in the garden, Jen cracked on with jobs, whilst I played with Owen. Even though we had brought his toys out with us, Owen was most interested in playing with the fresh topsoil I’d put down, mostly trying to eat it. He was filthy when we finished, but he’d had a fun afternoon!

As my parental leave has finished and I’m now back at work, I will bring this series of blogs to an end. I feel like I have gained a lot from spending all of this quality time with Owen. I certainly feel much more in tune with him than in week 1 – when I was impressed that he could go from his belly to sitting up. Now he is trying to climb anything that he can reach and crawls behind me when I move from room to room. Hopefully Owen has benefitted from having his Dad around, I can tell that he has enjoyed it. I did miss Owen the two days I was back in the office, so I am glad that I will be having Fridays off to look after him, which I am sure will be the highlight of my week.