 Hey guys welcome back to Daniel's Tech World on YouTube, mediumanddanielroswell.tech. So in this video I'm continuing the theme of backups onto my new Synology N20 plus NAS which is really really cool and I'm just going through all the different exploring all the different things myself that you can do and in the process is that showing some backups. Now what I want to talk about in this video today is WordPress backups. Many of you might be thinking WordPress backups isn't that kind of simple aren't there a lot of YouTube videos about it and actually the answer to those things is yes but what I'm showing you that might be slightly different in today's video is how to create your own WordPress and actually not just WordPress just because a lot of people use WordPress that is kind of synonymous for a lot of people with websites in other words their websites whatever they're hosting those websites on it's basically just a WordPress it's basically just a WordPress install there may be a couple you may be using the cPanel email a lot of people actually are not even doing that and it's just all being handled through you know G Suite or Office 365 so there's nothing up there except WordPress but there are people that do have other things on their web hosting it's a shared in a shared web hosting environment and what I'm going to show you in this in this method I think that the WordPress backup plugins and you know there are definitely a few of them there's UpDraftPlus which is excellent I do recommend all of these and what I'm going to say is that the 321 backup methodology which I keep coming back to in these videos basically what you're looking at here is a methodology for keeping your data safe now it's not necessarily the best approach for for example having a quick backup strategy and this is what's built into a lot of these backup plugins there I've discussed in previous videos the difference between full backups incremental backups and differential backups and basically an incremental backup strategy every time you back up you're just backing up from the last incremental backup that means that the backups are the backup files are light the backup the backups run quickly because not very much it's only looking at what's changed but you need this whole big succession of backups in the event that for example you're starting from scratch somewhere on a new host so it's great that if you're using a WordPress site and you want to roll back changes that were amazed two or three days ago and muck something up and you don't want to go through the whole troubleshooting process you know you didn't change the site for two days just roll back to a an incremental backup and restore from that so that's perfect the kind of scenario I'm looking at in these in this approach is more concerned with people that want to have a copy of their own data for backup purposes because you don't want to trust your data ever to somebody on the cloud a third party and most hosting most hosting companies are there are they backing up your data yes but is it your it's ultimately your responsibility and it's just prudent to have your own data not to put your faith in the in the hosting company there have been cases of hosting companies that have lost users data and if that happens even if your host offers a backup service and it may be a lovely backup service it may not actually be 321 it won't be 321 compliance probably but it may not even even you know meet the first criteria of that because it could all just be running little incremental snapshots on the server so 321 kind of takes things I guess you could say to the next level used a lot in sort of enterprise backup planning basically you have three copies of all critical data business critical data mission critical data and in the case of that wordpress site let's say that hope that's hosting your e-commerce website that's one that's the primary data source and 321 calls for two maintaining two copies of of that data now the backup backed up data needs needs to be on two different storage types right so we have two backups and let's split up again here we're going to say that these each needs to be on a different type of storage media so remember when I said that even if you have a host that has a backup functionality and many have very nice ones built in so you might be you might be a confused wondering there's a wordpress backup plug-ins my host gives me this backup are you like what are you telling me that I need a third of one so I'm not I'm not telling you that I'm just I'm just pointing out why you may still want to do your own backup approach even in light of the above and that's because you may just be getting one one backup through your host and it may not be even on different storage media by which I mean that that backup one of these tools that run on the server could just be backing up to the server that your that's your website's host on so that's actually on the same storage media even though let's get technical for a second your host is you know running a professional data center with raise which means that if they have disk failure of some type that they're not going to lose your data there you know that's a whole idea behind rate but it's still it's still redundancy is not equal to backups and if the data is lost or something and you wanted to go back to or you want to roll back to a previous point or recover the data from a previous point you still can't rely on that basically finally you want to have one thing off site so if you're we're talking about wordpress backups here so clearly unless you're hosting that wordpress site on a server on premises in your own house then it's already the primary data sources off site but that's still under the three two one rule we still need even if even if our primary data sources off site we still need to create a backup with another off site data source and using Synology's NAS and it's a wonderful cloud sync technology we're and I forgot to mention back please be to we're going to be pushing pushing that the backup that we take up to off site so that's going to give us our three two one compliant backup strategy now in order to get the show started and taking a backup I am going to just quickly log into my hosting over here and just show you now this is based on this is this really this whole kind of I don't like calling these tutorials but demonstration is applicable if you're a shared hosting customer if you're doing something like you know wix or one of these all you can one builders and you're probably you probably don't even have a C panel I don't use wix or all you can keep saying all you can all you can eat you know these kind of click and point building tools but if you're on if you're doing something a little bit more custom and you're you have a wordpress site on a typical shared hosting environment then you are probably going to have a c-panel and the c-panel I'm going to open up for my shared hosting is danielrosil.tech so without further ado so this is my c-panel and as you can see there are there is a jet backup which is one of these as I described the kind of incremental backup tools that your that hosts often provide nowadays so I want to take a look at what it is you can see it does say it has full account backups and you can just tell straight away by the you know this would be such an unsustainable amount of data if these were if these were 30 full backups so it's clearly not that and it tells you actually the type of backup is incremental so what he did just before starting this is I down as I requested I clicked on this generate download button and just to take a look at what's going to come out of this I'm just going to click on that now pay attention to these files you can see it's a 612 megabyte archive that is being downloaded and that's the latest incremental backup but the tool that we are going to be taking a look at is and I just did that in order to compare and contrast the difference between what we're going to get here so this cPanel has a has a functionality for downloading a full account backup and you can see below it there is just downloading the my SQL downloading email forders and then there's these little restore boxes here if you're going to restore stuff now basically my point about backing up at cPanel and just explain the difference from backing up at WordPress WordPress is a as most people know it's basically a server-side software it's a piece of software that you install nowadays most people are installing it through something like softaculous it's dynamic so it's got a bunch of files in there themes containing PHP files plugins containing PHP files pulling in dynamic content such as posts authors made a data all that kind of stuff that gets stored in a my SQL database so fundamentally WordPress equals files plus database now I'm explaining that just explain what you're going to get in that full account backup that that's going to go beyond what you're going to get in these WordPress backup plugins the likes of updraft and duplicator you're going to miss firstly if you have any other things in your shared hosting so I don't know let's just say there's a chance that you've put on a CRM or an ERP or some other server script that you you know picked up using softaculous you're not obviously if you just use a WordPress plugin you're not going to be downloading those you're not going to be backing those up excuse me and if you have any files that are not encased within the WordPress directory that's WP content then they're not going to be backed up if you have any my etc etc if you're using cPanel email that means you haven't gone and set up your DNS records and use an external email provider such as Office 365 or G Suite then the emails themselves and the email addresses and the email forwarders which is all this all the stuff here basically that's not going to be included so just taking a backup or WordPress to an external location is fine if you're doing small incremental snapshots with the idea of quickly rolling back changes if however you're trying to institute a 321 complaint backup strategy whose goal is to give you control of your data that you're gonna have a copy so and you're gonna hedge against the best the possibility I should say that this that this hosting company is gonna go under and you want to have a good full backup image of your WordPress site that you're gonna take I don't know every every couple of months then this is the DIY approach that you might be interested in so I've gone ahead and created that full backup before this video actually started and it's gonna be sitting ready ready and waiting for me now you can see firstly that's the 1.1 gigabyte image and that's just to contrast that's an unusually heavy incremental backup that we downloaded earlier I think I just let the I set up the site then let it sit for a while and then did the import in one day so that's probably this backup probably contains almost everything that's actually there so looking at what's in there you can see that this incremental backup divides the basically the entire cPanel into like your cron jobs basically everything you might have there your SSL keys and the files itself so it is a comprehensive backup but it is incremental so this wouldn't have everything it needed to restore no cron job setup so we're just I'm just gonna again pause the video as we wait for this backup image to download from the server alright so this guy has just wrapped up it's it's download and while that has been going on I have gone ahead and entered into my Synology NAS and this little program is called DSM now what this is basically a NAS to give you a visualization of this year it's basically a it's kind of like a file server it's a little device like this hardware device that you fill up as hard drives and you connect this to the to your Ethernet and it's on your network so it's basically a server optimized for storing files that basically lives on your network so this has Synology this kind of operating system that they give you has a nice little utility called cloud sync and this allows you to basically pair up I'm just gonna go into it here it allows you to pair up cloud storage repositories with the NAS so it's gonna create a two-way sync so what I've done is I've created a demo bucket in B2 now B2 is a cloud storage that is operated by back plays they're specialized in backups and recovery that kind of thing and I created a demo bucket just for the purpose of this demonstration so that's in the cloud and if I can basically all I need to do from this point we're almost actually finished is to get that backup the full account backup that I just downloaded that one gigabyte file I need to put it on to a share that I've created because this sync thing works between a cloud and then it syncs to a share on your NAS so if I go into my settings here overview yeah sorry task list and you can see the local path is Daniel desktop backups that's a local share I've set up and anything I put there is going to be synced up to the B2 in the cloud so let's just go back to 321 for a second and I will use for this my trusty GitHub documentation my master backup strategy so-called if you go back to 321 and let's just say this Linux backup is our hosting we have created it's in the cloud and we need two more backups we are putting one up to our off-site and we're going to in the process we're actually going to be firstly taking our on-site backup putting that into our NAS and then we're going this way in fact and then that's going to give us our off-site and that will mean that we will have if you go back to the 321 rule we're going to have our hosting and two existing copies full backups that can be used to restore from scratch no need they're not differential they're not in they're not incremental like the WordPress backup plugins a lot of them and like the lot of the backup tools the host had on they're full self-standing backups which will mean that they're heavy so we might need to repeat this process periodically and only keep one snapshot but they will each snapshot will have everything we needed to restore in the event it would be required and they're going to be on different storage media this is on whatever infrastructure B2 is hosted on and this is going to be kept on my NAS at home so two different storage media that means if B2 fails we're going to this is going to be okay and realistically B2 will not fail but if my NAS failed and I would have the copy on B2 so what I've just done here is I have called up in the this should be an interesting comparison the guy on my left is the incremental backup that we got from the host and the guy on the right is the full backup that's just finished downloading so as you can see they actually contain if I'm not mistaken all the same all the same files and directories but this is this was the incremental backup and if you simply compare the files as well you notice in the full backup and sorry that's the one on the left I got I think I may have got confused there there's things like bandwidth DB.json this file here 146 bytes and that is not featuring in the incremental backup because this is capturing the full backup everything that existed from the start and this is only what changed between this and the last incremental backup so if bandwidth DB.json did not change and it's not then it wouldn't have been included in the in this incremental backup that Jetbacker brand for us so jumping back into Synology over here for one second I've just popped into Daniel's demo share that's the one that seems to be to verify there's nothing in it so now I'm just going to search for that on the network so in PC Manifem which is the default file manager in LXDE which is really not so much in use anymore in even in Linux world it's been subsumed supplanted I should say rather by LXQT but this is what it looks like you go to go to network and I can click on it'll identify identify straight away the NAS the Synology NAS on the network and then what I need to do to connect with it is give it my credentials so I'm just going to do that quickly and then login that's been done and immediately you can see all the shares I've created have shown up including Daniel demo share so that's really it and you can see now it's using AFP and the nice thing about this PC Manifem is that you can see it makes it very easy to see the protocol that the file manager is connecting from so I am just going to open in a new tab the desktop and that is actually download was the not full one so this is the full cPanel backup and it's just a copy and paste you can make life difficult for yourself by doing this on the on the command line it's a gigabyte so it's going to take a couple of minutes just to move that into the into the Synology and what's going to happen then and I'm going to pause video here and because syncing that up to the cloud is going to take a while this will then sync up to B2 automatically and once it's in B2 then it's going to be and this will run as soon as as soon as this finishes this reaches 100% this is showing that all my clouds are currently in sync but when this hits 100% this guy is going to start going and we'll be able to watch as it moves up to the cloud okay the big moment is about to occur it's just reached 100% our ticker so if we do a refresh and Daniel's demo share I'm now looking at the if I can look in the folder in PC Manifem I can see that it's in there and this is the view from I can do a refresh here and there we go we can see that the backup has been loaded here now this guy the cloud sync is about to start moving hopefully so let's just check that okay so I've just checked the connection which in actual fact it was connected to the wrong remote bucket in B2 so I just fixed that and that just turned as soon as I changed the as soon as I created the new B2 bucket here in cloud sync and made the connection almost instant within literally a second this change from synced to syncing and you can see the icon is in there and it's just got that kind of tiny tiny file in the root of the folder and it's syncing so that's now going to be I'm not going to actually show this process because of the fact that my internet is approximately three or four megabytes per second upload speed and therefore it would take hours for that is probably going to take hours for this to actually get up to the cloud but that's how it works this is in summary a 321 compliant 321 compliance calls for taking two copies of every important primary data source two different storage media one off site wordpress backups consist really of files and database but it's of interest to a lot of people to take a full backup of the entire cPanel instead of just backing up the wordpress application that means you're not using the wordpress plugins or even the stuff your host offers I recommend you use the two things in parallel those incremental backups can be very very useful but if you want to take your own backups on your own independent cloud storage on site storage media then this is a way to do it in summary you need to go into cPanel in summary you need to go into cPanel and you need to you need to use the backup functionality pull down a full account backup and then you can download that if you're using an NAS you can put it into a nice sync if you're not such as cloud sync with that Synology DMS or if you're not using an NAS then you can just manually upload that download to some kind of cloud storage repository and that'll that'll achieve basically the same thing for you thanks for watching and any questions I'm available at danielrosil.co.al