 Hi guys, welcome back to Daniel's Tech World on Medium YouTube and also at DanielRosewell.tech. So what I'm doing now is the continuation of my adventure in backing up my Linux computer onto this new Synology NAS, that's Synology D920, let me just check that, Synology DS920 which I received a few days ago from Synology, it's a network attached storage and so far this is actually something I wrote I believe here coming up in Google and basically what I'm doing at the moment is just exploring the various and documenting, I'll be writing a few articles about this, how to back up my Linux desktop onto Synology. So this is my GitHub repository that I keep mentioning but I have documented my master backup strategy and what I'm doing essentially, this was before I got this NAS and it was kind of always something I thought about getting local servers in the schematic here and kind of now, up to now, I've just been adding a few extra internal drives into my computer, specifically I2 actually, one for TimeShift, TimeShift is a differential backup tool here actually not incremental that uses our sync and it just takes internal snapshots so it's a nice little tool you can roll back easily, unfortunately it doesn't support network backing up onto a network storage device so I do not believe unless there's a worker and they haven't figured out that there's a way to do this directly onto the NAS itself but at any event I kind of think it makes more sense to have that guy internal but just to explore the options I used GR sync which could be, that was my last video on GR sync could be used for a similar purpose, you could create a few different folders, you could find a more, I'm sure you could find a more sophisticated front end to our sync that would allow you to do what TimeShift does onto a network device on your local network and what TimeShift does well is that it takes a few snapshots so you have a choice if something goes wrong with your system and you need to find a restore point, you don't just have a backup, you have three or four different snapshots and those snapshots are differential backups and you can just choose which differential to pull from in the restore so that's GR sync as I showed in my last video and it worked well and I have that onto a share now the next thing I want to do is go do a clonezilla job on my desktop directly onto my new NAS now unfortunately it was not successful and attempt number one which I can say is entirely surprising there were clonezilla over SSH and NAS is something I have not attempted before and although I had the IP address and the username and the password and as I mentioned there are just a couple of prerequisites just to be aware of quickly which I will point out in order to get this running I did have these set up so I'm to be honest I'm not sure but I will I'll work on troubleshooting that tomorrow if you're going to be doing a SSH it's not enabled by default so go into your control panel and this is called DSM this thing I'm in here it's basically a this is the Synology IP address port 5000 it's open to serve this and it's like a little embedded web server that's you know throwing up a operating system basically so it's quite cool it's persistent it saves on the NAS so if I you know it's like a real local OS if I delete icons on this desktop they'll be deleted if I restart the NAS and the resolution I guess because it's being served locally is actually you know pretty much the same as if I was actually looking at my desktop in the other window so it's quite cool I'm very very impressed so far with Synology I must say I've got it for just for backups and as you can see I've got a number of cloud sync jobs running here and I'm moving just a lot of data between b2 and s3 and google drives whatever creating syncs to a share on this network and that's great so it means I don't need I'm not going to have to bother playing around with files that are pro anymore and all these awkward utilities to move stuff back stuff up to the cloud I can just save stuff onto various network shares and the syncing will happen on the NAS instead of on my desktop computer so there you go another six files up to the cloud you need to also by the way before you before you enable ssh and I didn't actually show that you need to go all the way down to terminal and there you go the first one enable ssh service I was surprised to see this was not ticked by default and the default port setting is of course 22 so you just need to enable that before you you can ssh into your machine so that's really that's basically oh and you need to enable your user home directory I had to do that anyway in order to get the ssh to work so now with that introduction out of the way I'm gonna this is what Synology says about how to back up Linux computer to your Synology NAS they have this info about configuring as the destination server I actually for some reason that is not clear maybe this is a different version of DSM I was able to to set the privileges on my shared folder but I didn't have this backup services thing in a in control panel I did search for it high and low I couldn't find it so maybe they've updated this maybe there's different versions to be honest I'm not really sure but in any event I did set up rsync and ssh so I think I should be good to go now we looked at the g gr sync the last time and this time we're just going to be using plain old plain old rsync I'm removing this clonezilla backup from my desktop today on to Clydeberry and we're gonna then be doing it we're gonna just be doing one a direct one in time so you know what I'm actually gonna create in order to distinguish between clonezilla which I want to be directly from my desktop to the NAS and this is going to be a this is going to be a clonezilla that's going to be a copy of what's on my desktop already so we're going to just call this one to distinguish it clonezilla copy copy of clonezilla images saved on desktop beautiful we're not going to skip encryption and apply that so I already have read read write permission on this new shared volume I've created and it's called clonezilla copy so that's important so we're just going to dock it for a second and this this is beautiful look at this it really does work like a desktop and look at the speed and the resolution it's fantastic you even got a systems monitor and I can see all this traffic is related to the cloud sync activity that's currently currently going on so now that we've created that bucket I'm ready to ssh into this machine and I'm just going to do what they recommend this command is really simple rsync minus av now I'm not going to spend time making sure that I have the operator is 100 perfect you know to make sure that this rsync that what I'm using rsync to copy over is is going to be restorable because that's the ultimate goal in this case I'm copying over the clonezilla backup images I'm just going to go go with this guy just for the purpose of getting this first one done and see if it works and then if it does we can look into that further and I'm creating a few excess shares I'm duplicating the clonezilla backup by doing it two ways and that's fine the whole I think the whole beauty of filling up your NES with a bunch of storage is you can afford to kind of waste a few you know a few hundred gigabytes here or there just to just to try out various things and see what works for you so um it's rsync minus av the folder then your ssh credentials that's going to be my username for the nas and ip address and then look at this it's two colons not one I don't know but I I feel like I've seen one more frequently than two but it is indeed two and then this is your bucket name sorry your share name and then you can specify a path within the share so that's the syntax I'm just going to clear this out and uh I will be uh copying now okay uh so this is basically where my clonezilla image lives and if I do an ls I can see home desktop backup and if we uh just take a look inside we can see this is what a clonezilla backup actually looks like you can see these are the sda one is the partition and these running from sda so 1 2 3 4 5 6 7 8 9 10 11 12 different chunks and a few different things I don't pretend to know everything that's in it but that's what the that's what the image actually looks like on the inside so let's just capture it at the folder level so recurse recurse one level and we're going to just do r as instructed r sync minus a v um home desktop beautiful and we're pushing this to my login as uh 192 16807 192 16807 um two colons and then we're just oh sorry then the um um then the sharing name which is going to be clonezilla copy um and then we can just leave a uh a forward slash I think so let's just run this and see if it goes um make sure you have v that's the verbosity operator so you can see how it goes I'm just going to run that I'm going to ask for my passwords which I will beautifully provide and that failed uh I forgot to put in a pseudo so you're going to need to run for if you're doing clonezilla needs to be done with elevated permissions uh password again and success so you can see it's now um sending the incremental file list which is the first stage of this backup um the first stage of the r sync job and then it kind of speeds up very quickly so if you go in here and we go into our file station and our clonezilla copy we can see there we go it's already started to uh send over transmit the very lightweight stuff the text files and uh judging by the time as well it is indeed currently uh 2 30 a.m in the morning approximately my local time um and these timestamps to the creation so I'm just checking that to make sure that the it's being created as as expected so that's basically it that is using um that is using rsync uh in order to and actually sorry these are these are I believe uh possibly from no we just created these are indeed being synced over um so yeah it's 2 34 a.m so uh that's it basically that's how to use rsync and you can just get a copy of clonezilla image from uh wherever it's sitting on your computer could be on your you know on your actually laptop whatever and just using rsync to uh to to sync that over to the uh nas and uh and store a copy of that backup over there thanks for watching any questions the website is danielroso.co.al let's not wait have a great day