 Hey guys, welcome back to Daniel's Tech World on YouTube, Medium, and DanielRoswell.tech. So hopefully the final installation in the Linux backup series, backing up Linux in various ways to Synology Network at that storage slash NAS device. So what we're going to be doing in this particular backup is doing a full disk cloning to the NAS and doing that over SSH. So let me just explain the process because it took me a few times to get it to work and I've done clonezilla many many times to a local device and this was the first time doing it over the local area network over in SSH. So basically I'm just going to get into my clonezilla first of all, this part of it is fairly self-explanatory. Get through the initial screens as you do typically, just give it a second it's a little bit on the slow side. Now the first thing to say is that with clonezilla, sorry with Synology the port SSH is not open by default at least it wasn't on my one on DSM so I needed to go ahead and enable the SSH service over port 22. I also needed to enable RSync none of the stuff was worked let's say out of the box so I needed to go ahead and do that first. Now this is going to be a disk image unlike what we looked at previously with RSync and all those which were file based systems. Disk imaging is also often called bare metal so we're just literally copying the hard drive onto the hard drive. Okay so going through the first stage is as pretty as one does typically in clonezilla just a minute or so and what we're going to be doing now I'm going to be going for a device to image is usually the strategy I use here. You can do device to device but typically for backups device to image is preferable. Okay so basically this is where the familiar process was new for me so I'm used to doing the backups onto the first option to a local device. I have a SSD in my computer just for clonezilla it's dedicated just for that purpose and it makes it easy for me to do this I just have to backup SDA A onto SDA B and it also gives me a little bit of disk failure redundancy because you know it's not it's on different storage media however in this instance let me just say firstly what else there is SSH this is what we're going for you can also do this over SAMBA, NFS, webdav and you can also do this to a remote S3 server up in the cloud but I'm doing SSH. So what it's doing now I need to just tilt this down a bit so you can see it it's it's probing the network interfaces on my computer you can see it's taking a look for F0 and WLAN0. F0 is Ethernet WLAN0 is the Wi-Fi card so the latter part is kind of a bit pointless because the NAS is attached to Ethernet as it usually is and but it does need to just go through this kind of network discovery process so just leave that run for a few seconds. I'm just going to move up and I will just wait for the next part of the journey to begin. You just have to always be careful with clones that you don't do anything crazy because the potential for what can go wrong when you run this tool is pretty significant you could literally wipe you know if you got the source and destination mixed up you would completely wipe out format in fact your drive so I always go through this kind of slowly methodically. This part's easy though just yeah we're going to be using Ethernet it's giving us our MAC address DHCPES okay here's the first stage in the SSH process it needs to know you just what the device the local network device of your NAS is and you can see here mount SSH file system so this is going to actually mount it port to connect to 222 so that was a default when I set up SSH on the NAS typically that's what you'll have as well Brute account in server so I created an account called demo and let's see if this works here's the bit that I had to I had to actually that threw me off and why I failed in this endeavor a few times so basically at this stage is asking I'm just going to read out what it says the directory where clones that image will be saved to your read from use absolute path in SSH server eg home part image that's populated by default and when I'm doing this on SDB a local device I never change this and it always works I set the I set the image name and that home part image comes back to just the root of the server however when I tried it over SSH that that was not the case it needed to be an actual resource that exists on the SSH server so I created a share on it called clonezilla just so because I'm trying out a few different backup approaches I want them all to have their own one so it's easy to see what's going where so I'm just going to zoom in so you can see it I literally the path I've set here is forward slash clonezilla now I'm using I'm using an actual video camera for this because I'm not doing this on a virtual machine it's a real you're looking at a real computer job in progress so forward slash clonezilla and clonezilla is just the name of the volume share I created for this so it really exists done and you can see now look I just zoom in one more time so just to see how this works username IP address forward slash clonezilla so that's the path and you cannot if you're going to do whatever was home part image that's going to fail because it's going to it's going to throw it up when you won't be able to do the backup because it'll see that there is no home part image on the on this on the SSH server so I'm going to okay that and this is the first sign of success is when you get this when you're prompted to just accept the key fingerprint so you know that it has made a connection with something on the network as you can see over there so I'm going to just type in yes to that and now I will just quickly here enter the password for this account and it's a real account that I set up in DSM ah yes so this is the this is what I call the glory screen when you get to this you know that you're in business basically so you can see it says the file system it's correct it's picked up demo at my at my nes clonezilla it's mounted that with under a fuse mount on SSHFS the size is correct the use space is correct I'm almost done I've just set this up quickly with one SSD and I need to I need to go out now and buy a couple of hard drives to give myself more space it's correct is only 20 megs available and the target the target's home part image so don't ask me exactly how that works but this will work this will save in the volume called clonezilla of course you could call it whatever you want but that's it enter to continue beginner mode is generally more than enough save local disk disk to disk you can do say partitions as an image but as I said disk is usually what you want so this is really kind of the standard clonezilla there's nothing really remarkable from this point onwards it's the same as if you're doing it just your local computer I tend to call mine today's 21st 210620 I always just kind of maybe this is this is just me but I always write the name of the computer so this is just my desktop so I'm putting in here desktop and then the date okay to that and now we're creating our source and for me the source is SDA that's the Linux SDB is actually the clonezilla one in my computer SDC is another one so SDA is what I want to back up I'm gonna do the skip check in the file system I'm gonna skip check in the image I'm not gonna bother with encryption I'm just gonna do this one quickly and then shut down when I'm done enter to continue and I'll finally just you get this confirmation menu at the end just to make sure then this is really your last chance to loon make sure what you've done whenever you're we whenever you're using clonezilla make absolute sure that you have your source and destination correct because as I said the other chance is you will be scurrying for whatever backup you previously did with clonezilla and pulling out power cords and all that kind of nonsense so just make sure that you have set everything up right click yes and now you're in business the backup is running and you know with clonezilla you can expect this to take in the region of give or take 16 16 15 minutes might be a little bit slower when you're doing this over SSH as opposed to doing it directly within the machine but I have just done one I verified on the SM that the that it created so I can I can confirm to you that this process is works and that creates a disk image directly from your desktop onto your NES on the network thanks for watching the video hope it's been of some use to somebody out there on the internet and if you would like to get in touch my email address is sorry my website is danielrosilrosilos2ls.co.al thank you for watching