Warning: this post is…geek-ish.
So, although I consider myself tech savvy, and usually very careful when I am upgrading or backing things up, I made a very big mistake today.
I was upgrading my webtrees database. The webtrees project is a very active one – which means the volunteer developers are always working on improvements to the system and every few months come out with an upgrade. So yes, just like most technology we need to upgrade the software.
And it’s usually a pretty simple process. In fact, I was going to do a video on how to do and was capturing my screen as I was making this horrible (albeit savable) mistake. I will not post it to save some face.
The upgrade process is as follows;
- Backup your database
- Download the latest edition
- Copy the files and replace any with the same name
Simple right? And I know some of you might be thinking, “he didn’t do step 1″…well, I did & am very grateful. And step 2 went well. However, when I copied the files over using Filezilla, and refreshed my database it still said “version 1.4.2″ instead of the latest “version 1.4.3″. I did this twice! I cleared the cache on my browser and closed it out, hoping it was a cache/cookies thing….which it wasn’t.
I started getting frustrated. I then searched the webtrees forums to see if anybody had a similar issue. There was one but his problem was copying the wrong folder when he was upgrading – he was simply copying the same version over, which doesn’t upgrade anything.
I triple-checked…nope, not my problem.
However, I think I had discovered my problem on the other end. In the server were 2 webtrees folders. I had a webtrees folder within a webtrees folder. I was nesting my installations! (see image)
Ok…well my logic led me to think that since I was copying the upgraded version into the parent folder & it was not registering on the system, it must not be the active root folder right? right??? So, since I assumed all those folders were empty and not in use I highlighted and pressed delete….don’t they say to never assume?
oh why oh why did I highlight and press delete?!
As Filezilla was processing my little-thunk request, my brain was waking up, and watching my image files being deleted…wait, why would my personally named image files be in the empty/new version folders?…OH #&@%! (forgive my french)
I cancelled the delete process but it was too late, my software program was no longer online. GRRRRRrrrr! Ok, breathe, is it that bad?
No…Whew! I’ve already backed up the most recent database in the form of a gedcom & I have every image I’ve ever uploaded to my database on my computer and backed up on Google drive. So, I’m good. However I did lose time. I now have to;
- Actually upgrade the program as if it were a new install
- Re-link my database since I didn’t lose it at all (otherwise I would simply re-upload the gedcom file)
- Re-import images from my folder titled “resized images” – specifically sized for web viewing.
And to think, in the past few days I was thinking to myself, “why do I have a folder of resized images backed up on google drive when it’s already backed up on my server?” thank goodness I hadn’t taken steps to get rid of that folder…even still, it wouldn’t have been all bad. I would have to resize all of the original images and mass upload them to the server – which would take more time but I could be more organized on sizes and the website would be better for it.
So anyway, there may always be user error. This was not a flood nor fire that was close to destroying my research, just a simple brain burp. Nevertheless the lesson is the same, BACK UP YOUR DATA!! (preferably to the cloud).
Thanks for reading!