 Hi guys, welcome back to Daniel's Tech World on all the all the important places on YouTube Medium and YouTube Medium and DanielRozo.tech. So basically I have now got my Synology DSN20 plus NAS up and running and at this point in time what I am now doing is looking at the intended purpose of backup. So let me just explain this already in several videos but why not just explain what all this is fitting into. So I have my backup documentation documented here on GitHub under my master backup strategy is what I call it and what we are going to be doing so typically for my local backups from this Linux desktop what I do is I keep four, well let's forget about the windows one I keep three SSDs in my computer and one of these is just for timeshift, timeshift is based on our sync which is a differential backup methodology and I will just explain in a second before we start this exactly what that means and then I take a harder backup onto clonezilla, clonezilla is a full backup, a full backup is the easiest one to explain it just backs up the entire system differential, let me just go through this now differential versus incremental backup so differential backup, yeah copy of all items changed since last full backup so you have full and then differential. So that means that the blocks are relatively big, an incremental backup which you are going to see in a second that basically each time that it runs it likewise starts from a full but then each time it runs it's backing up since the last incremental job so basically you need a it's going to be faster because it's going to be smaller chunks if you think about it like every time you're just backing up you're just comparing to the last job and the last job compares to the job before that and before that and before that so ultimately the slices are going to be smaller but the problem and I can put it better than this in some cases the backup software requires all iterations of the incremental backup for data restoration one piece so it's like a chain basically and the weakness that's the weakness if you have a failing storage media was corrupted sectors and just one of the chains or one of the chains didn't run properly one of the incremental backups this you know in order to restore if your system collapses on Friday here in order to reach you know you'd need Thursday's backup Wednesday's backup Tuesday's incremental backup Mondays and if it failed at this point you wouldn't be able to get the data again it depends on the backup program a differential backup you start the first time you run a differential is the heaviest because you're starting that full backup and that's what it compares against every time that it runs basically okay again depending on the backup software can you get various snapshots you know see what I'm going to do in DSM is just create one I keep thinking of in S3 lingo here one bucket but they're called if I go into and they're not managed it's disconcerting they're not managed in file station they're managed actually in a shared folder here so I went ahead and created Daniel desktop backups and I'm actually just going to go ahead and wipe that because I decided that there's no need to economize when it comes to folders and I'm going to give GR sync which is what I'm going to show you firstly I'm going to give it its own folder over here so that's just delete it so let's go ahead and do that I'm going to create a new shared folder on my network and I'm going to call this Daniel desktop backups underscore and just going to use that to distinguish between the GR sync so GR sync as we said it's a G it's basically a GUI for our sync so you this is just saving you the kind of leg work and there's other G there's other of course in Linux there's always multiple options but the key I find in Linux is to find one good thing for each each common thing actually I'm just going to prepend the GR sync because I might get kind of hard to see if it's at the bottom so GR sync Daniel desktop backups I'm just going to description backing up Daniel's desktop to Synology over over GR sync and I always like to just know I'm going to write here differential that's why I really like to know GR sync to say I like to know exactly what methodology we're using again in my diagram time shifts incremental I think that should actually be differential if it's based on or I think and then clonezilla is a full disk image so I'm going to try it did not a success actually just had a hitch trying to get a clonezilla for some reason that's not clear to me over SSH but I'm sure I'll figure that out tomorrow so what I'm going to do now is set this up so I've just given it my description GR sync I'm not going to use encryption and boom and I'll be able to get my own permissions onto that so I by default have read write access and there we go so GR sync so now what now the next thing that I'm going to need to do is figure out some way to just get this onto my make a bookmarks that it's easily easy to get access to so I'm just going to click into files over here and you can see that I have the NAS already bookmarked and it's a little bit it's a little bit on the buggy side it must be said all these various file managers so what I need to do is just connect to NAS so if just give me one second I'm just getting good alright so basically the easiest way I find is to click on is go to your network and it'll find what whatever is on the network so I actually have I can see everything I can see the whole NAS and all the various folders within it here so what I've done basically the reason that these folders homes and home exists is because in order I actually set this up in order to get the SSH running you need to go into user and under the advanced settings this bottom thing enable user home service I needed to I needed to enable that in order to in order to when I SSH didn't import 22 that it would actually have somewhere to show to land to land so to speak yeah so basically you need to do that and let me just get out of this so that's why that exists and it creates in packet center sorry in file station it creates for you this homes which has everybody and home and so all I need to do is just go on to GR sync when we just create it and I'm just going to quickly bookmark this and it's going to call it GR sync you can see the network address usually actually connects over SMB but once it's there once we go into GR sync we should be able to quickly put that as our destination now I will go into GR sync open that up the tool of GR sync and here we go this is from the last time I just ran it so basically it's very simple you have here source and destination so I'm just going to do a full I'm going to do a full backup here from the root of the file system so just one forward slash and this is why you can see that it's mounted I think that's another thing if you bookmark it so I can just pick it up and you can see that's the main point of of this of this folder in the NAS now I've included preserve permissions and preserve owner and preserve time it's a basic full file system backup that we're running here over our sync you can go into advanced options and you can see I think you can exclude stuff in this or exclusion option but I'm not going to do that I mean you don't actually need to back up all these folders never do you need to back up the full the full Linux file system but I'm just going to do it for the sake of showing this one so that's basically it and then all you need to do over here you do have an option for simulation if you want to do that you can switch towards the destination quickly but I don't need to do that because they're configured correct and really you just click on there's one more thing you can you can see what you would need to run if you do change your mind about using a GUI and you want to open up the command line you could just type that in but I'm just going to use this for the sake of making life easy easier execute and you have your output here and now it's running and you can see it's backing up it's backing up the entire system the beauty of our sync unlike clone zilla and again I like clone zilla just because I think it's hard and it gives you nice images and it's full it's every time you run it it's a full system backup so that's my kind of like failsafe backup I use time shifts as I mentioned and I think that what this could do you know this wouldn't fulfill time shifts ability to create different restore points you know snapshots this would just give you one backup it's more I'd say for its redundancy in other words that you know you could run this at various intervals but that would give you one snapshot effectively that you could restore from if needs be there would be ways that you could configure you know you could create a few different folders in that destination and and create and create backups that way but it's a it's a manual approach so this is just kind of a simple tool for running our sync with a little bit of GUI in your favor it's not kind of a full-fledged automated you know there's no automation here scheduling you know that's at least as far as I can tell I hope I didn't miss anything but I'm you know this is a good one to start out with just to see how you can get an arcing backup running onto the NAS so let's just see if it's running and we can do that very easily from DSM clicking on GR sync and there we go we can see that it's in the process of building out the building it's a file system on the NHS and you know the way thing these things run is typically it'll build the folders first and then it'll start populating the actual files so if I go into boost I we can see there's already it's already actually dropped some files in there so I'm not gonna I'm gonna keep running this but I'm not going to I'm not going to show the whole process in this video so thank you for watching that was the first of our Linux backups on to Synology and the tool used here was called GR sync