How To Backup Linux Systems With Grsync

hey guys hackers Floyd here back again with another video and in this video I'm gonna be showing you you can backup your Linux systems with gr sync now this is a video that has been highly requested on the video suggestions for that I posted earlier this year and I will be posting that in the description section as many people were looking for it so many of you asking me this and essentially how I go about backing Linux systems rather than Linux servers were where you would essentially want to backup a particular directory it could be the web directory or any other particular directory that is of interest to you so many of you have been asking how to do it for you know for standard systems many operating systems provide this service automatically or do provide you with snapshots and one example of a fantastic program or tool is gr sync now many of you are all for those of you who have been with Linux for a while already know about our sync alright so gr sync is essentially a GUI implementation of our sync and simplifies the entire backup system and offers a variety of functionality more of which I will get to in a second alright now there are many backup tools out there for Linux however I personally find you are saying to be the most convenient and the most trustworthy when restoring and sort of copying comparing files etc you get the idea it's very very convenient especially when restoring systems I've been in positions where I've made changes to my system and I wanted to revert back or I simply wanted to to actually view an earlier snapshot of my home folder you get the idea I simply wanted to go a step back or any particular time now whatever backup policy you have for yourself I personally back my system up every week or if I feel I haven't made any changes then I will usually move it to a month and usually keep about five snapshots from the last five months but that's me so again it's all up to you now you might be asking what exactly is our sync then well our sync is an open source command-line utility that is used to efficiently transfer and synchronize files between a computer external hard drives and of course networked computers by comparing the modification times sighs of files so essentially what it's trying to do here is to allow you to make copies of files and it distinguishes between these two files or these multiple copies of files based on the date of their modification the size of the files etc so again it's it's really just about creating snapshots here and it does it really really well all right so the other question you might be having is well does our sink come with our own Linux distributions and monster – that is yes it does come with all Debian based distributions as far as I know installing it is very very simple you can install it with any of the package managers you have and you might be saying well why aren't we using the command line utility and the answer to that is with gr saying it actually teaches you the correct arguments you can use and I personally prefer using a nice click tool to get everything done all right so I have it right over here and that is gr sync but before we do that let me show you how to get it installed so again you can use your aptitude a package manager and I'll just expand that so it when to get it installed you want to type in sudo apt-get install our sync all right now by default I am currently on power to s and our sync comes pre-installed so let me just enter my password here and you can see it's already installed now if you want to install gr sync you can also do the same so gr sync so right over here and we'll it enter and there we are it's the latest version of course you can also do it with the synaptic package manager if you cannot find the particular packages you're looking for and once that is done you should be good alright so the first thing you want to do is start up gr sync and I'll give you this nice little welcome page here and hopefully you can see what's going on if not I will zoom in the video during the post-processing of this video so in any case so right over here you have your file sessions and help alright so we'll leave help out of this and in terms of sessions these are your various backup profiles so for example you may be wanting to backup a particular folder and then you want to separate that session for your system backup so you know I could be backing up my system and then occasionally backing up my video files that are used for video production for the channel so create two two different sessions and so I do not mix up the backups and the files and then within file you can browse the source and the destination which I'll get to in a second you can also simulate and that comes into that comes in handy when performing a comparison test of the files to see if the the backup and the destination the backup and the original directory sorry are the same and contain the same files it's a very simple way of checking whether they haven't been any files modified or they aren't any differences between the backed up files and your current working directory if you haven't made any changes in particular so even have you execute you can also run the rsync command line and check out the preferences right over here alright in our case we are simply just going to get started with a default session of course to create one you can create right over here and you also delete them right over here so our default one again you can simply go with this and you can see there already have a bit of a configuration but I'll go through all of what is going on right over here so the great thing about gr sync or our sync rather is that you can back up whatever directory or or drive that you want so it is really really convenient so you can backup and Diet drives you can backup any directory any file it's all up to you and what you prefer now by default for my system I like I like going with backing up my home directory alright now I currently have my home directory installed with my system and I know that isn't recommended but I currently have one SSD that I'm currently working on although I don't like separating the home and the system the main Linux system from each other so that's all up to you so what you want to do is click on the the sauce alright so the source is the files or the directory you want to backup now let's say I want to backup the home directory so let me go into my file system I can click on home here or I can actually go back and just make sure it is it is on home right over here and it opened alright and that is essentially going to backup the home directory now of course I want to back up my I've just created a test directory within my user and this is to essentially just explain what's going on here so I'm going to go into my test folder and I want to backup the entire test folder now the test folder opponents are simply a test dot txt file and I'll get to that in a second so I simply select test folder and it opened and then my destination so what I like doing is I like backing up or making my backups on my external hard drive and my backup drive so I have redundant backups so I'll just click right over here and of course you can back it up to you you can also back it up through the file system or any of your drives here for the purpose of this demonstration I'm going to be backing up on my desktop I know it really isn't much of a backup if I'm doing that so I'll just this is just simply for demonstration so I created a backups folder here and I'm just gonna save it right in here alright it's very important to specify the destination directory directory correctly now again you can customize this however you want in regards to whatever files and directories so that's all up to you now the important bits here if you are going to make a fully-fledged a snapshot it's important that you preserve the time the owner the group and the permissions these are all a must however if you don't want to do it you can exclude them and right OVA tells you the permissions you can use if you are going to use our sink so for example if I wanted to do this I would say our sink T P o and G all right now those are the arguments that I would specify and it will show you this when you actually perform the backup all right now you can also delete on destination if you want to of course delete the files and the destination which are not present in the sauce we don't want to do that your boss is simply just going to give us more information ignore existing so skip updating files that already exist this is already this is if you have those particular files already and you simply overwriting a particular backup and you don't want to copy files that already exist or haven't had any changes made to them I don't really need that right now because there's a fresh backup although it may come in handy you then have your skip newer so this will not update any newer files alright that is also very important you can keep that as well I do not leave the file system do not cross file system boundaries also important if you want to do that show the transfer progress the size we don't really need to work with that windows compatibility of course you can provide a workaround for windows fat systems if you do up that limitation and of course working with Linux then that does come into play we then have Advanced Options which is my favorite we don't need to preserve any checks out as you can see we're not really comparing any any particular checks on here so you can go ahead and take a look at all of these options is simply going to preserve the devices keep partially transferred files make backups so make backups of existing files in the destination so this is essentially creating redundant backups you can also disable recursion so if checked the subdirectories of the source folder will be ignored that's something that you want to use very carefully in case you don't in case you see you you really want to backup only top-level directories and my favorite you can also compress your files if I'm backing up large amounts of files and files that I don't expect to use and you know I'm just keeping them for redundancy then you can also compress them we'll take a look at that in a second the other options you can check they aren't really important you then have your extra options here so these are the commands that you can execute before our sync so these come in handy in my opinion if you're backing up a large amount of files or an entire Drive and you you're going to be leaving your computer so what you can do is you can you can execute a command after our sync has completed so you can essentially shut down your computer once our sync is completed Nick of course of course you can run that as super user and provide any notes and this is going to be unique to that particular session that being said we can get started so what we are going to do here is if I go to Alexis to my home directory into the test folder and we take a look at the test dot txt file this is the file that we're going to be backing up you can see it simply just contains some text and if everything is successful it is going to copy all of those files into the backups folder now I know this sounds simple but of course the main things that you need to take into consideration are it is preserving the time owner group and permissions which is really fantastic we are going to restore your system once you're ready to go you can right you can click on this little two cogs right over here and that'll make a full run or a go essentially means get started you then have a simulation over here which is also known as a dry run and essentially tells you or simulates the entire copying process and whether you run into any particular errors whether you're updating your files all that good stuff all right so I'm just gonna hit go and it's going to complete successfully you can also take a look at the our sync output so you can take a look at the our sig command here and you can understand how that works it's really very simple to use so again our sync RTP or GV and the progress that is for verbose output again i mean that is slightly different from bubbles that shows us the progress so then you specify your source directory right so then you want to it once we're ready there you can also check the the backups directly to make sure the files were copied and there you are if you just take a look at the date modified the size etc you'll be able to see that it preserves all the permissions

  1. Hello there its not a question about the video
    -Question : For some reason Turkey has blocked No-Ip You can enter website by using vpn but u can't get connections any other dns service can u suggest ?

  2. Mate, after your presentation, i have been using Parrot. Thank you so much. I suggest anyone to use VEEMBACKUP solution. It is free for pc either linux or windows. you can prepare your image as a template and deploy any other pc, addtionally backup your files.Thanks alexis.

  3. Umm, i just wanted to know is that discord group you mentioned in one of your videos is still active ?!

  4. After installing kali linux, I wanted to install Vm ware tools but its showing The guest operating system has locked the CD ROM door and is probably using the CD ROM which can prevent the guest from recognizing media changes …

    What to do pls help ????

  5. Hi hacketsploit, I wonder if it is possible to convert Arch Linux package into Ubuntu package. For example, I would like to install blackarch on ubuntu. Do you think it would work?

Leave a Reply

Your email address will not be published. Required fields are marked *