Linux - Backup your data the quick and efficient way with RSYNC

  Рет қаралды 19,865

Kevin Loughin

Kevin Loughin

Күн бұрын

I haven't done a linux tips video for awhile. I hope some of you find this helpful.
If you like my videos, please subscribe here: kzbin.info?s...
If you want me to keep making more videos like this, consider becoming my patron at Patreon: / kb9rlw
Discuss this and other videos on Facebook: / kb9rlw
Hit me up on the echolink repeater down by my house: W9TE (Node: 519521)

Пікірлер: 62
@AndreKochDre
@AndreKochDre 3 жыл бұрын
In my opinion the best rsync video for linux beginners. Wish you had completed it by including instructions for making the command a cron job though.
@jamesbaxter2812
@jamesbaxter2812 20 күн бұрын
sir, I have ask a person om going slow this way, Ten I found you. Thanks and it worked.
@chrismyers8361
@chrismyers8361 5 жыл бұрын
Thanks. I used RSYNC earlier today moving all my pictures and videos to my NAS. Worked like a champ!
@TrystansWorkbench
@TrystansWorkbench 6 жыл бұрын
Kevin. Good job. You can also check out rsnapshot. It's a script that uses rsync but it adds the capability to go back to previous days of backups with a clever use of symbolic links. It means that you can "roll back" to an old version of a file easily (in case you accidentally make a mistake working on a file).
@PoeLemic
@PoeLemic 4 жыл бұрын
Thanks for helping to teach all of us LInux. I think that I will finally make the jump soon from WIndows to Linux. I'm tired of all the updates, problems, features that bonk out, etc. I just want stability. So, this is something that I need (Rsync) to back things up and keep it protected on a server. So, thank you for sharing what you know.
@wasabisohot
@wasabisohot 5 жыл бұрын
Thanks for the video! Helps me in a proof of concept of setting up a backup system with an rpi3 nas
@johnwmacdonald994
@johnwmacdonald994 6 жыл бұрын
Always glad to meet other Linux users.
@PoeLemic
@PoeLemic 4 жыл бұрын
I'm coming over -- from the Dark Side. Finally getting tired of constant updates, BSOD, etc. I want stability, and I see how Linux has that.
@grahamarcher2729
@grahamarcher2729 5 жыл бұрын
This video has been very helpful. Thank you very much!
@MoTown44240
@MoTown44240 6 жыл бұрын
Good advice Kevin. Here's another one, for files that are duplicates but have different names, e.g. images from your phone or DSLR. For the command line fdupes -r or fdupes -rd or for CLI challenged FSlint.
@johnpawlicki1184
@johnpawlicki1184 6 жыл бұрын
Great video as usual. I would like to see a simple file server setup with Samba. Great stuff.
@loughkb
@loughkb 6 жыл бұрын
That's an idea. My file server here is linux/samba. When I worked at the last job, I built a linux file server that the company relied on. Robust as heck.
@arjunshinde7
@arjunshinde7 2 жыл бұрын
Thanks for making this video. The content is really great 😊
@786jinga
@786jinga 6 жыл бұрын
Awesome Video Kevin!
@samglaim4274
@samglaim4274 6 жыл бұрын
Interesting stuff. I keeping dabbling with Linux, and using the terminal is one of the things that is a bit tricky (reminds me a lot of DOS commands?). Linux Mint (what I've been using) seems really friendly for people like myself who normally run Windows and most of the 'normal' stuff seems easy enough with the Linux Mint interface. Thanks for the video.
@md.shahinurrahman747
@md.shahinurrahman747 Жыл бұрын
Hi Sam Glaim, I've wanted to ask a question to you about the windows functionality, if you did earlier then please answere me. If want to lock a folder in windows without using any third party software installation, How should do that, the use case is, the top level folder contains few more sub-folders and those sub-folders also contains sub-folders and files, but only the top folder will be password protected. There is no encryption required. The Admin will set the password and Admin should also access to that folder using password. if you have knowledge plase I would request to you please share.
@DonDegidio
@DonDegidio 6 жыл бұрын
Hi Kevin, Great time on stream earlier. Now that power came back on and boiler back up to temp it started leaking. Pressure was way up. I think when the temp dropped, it let in some water and when burner came back to life it caused the extra pressure. Bled it off and will keep an eye on it. The boiler was installed in the middle 60's. I think we have our moneys worth. :-) 73 WB3BJU
@DoItAndDie
@DoItAndDie 4 жыл бұрын
Thanks for explaining this stuff, and great tutorial!
@Laflamablanca969
@Laflamablanca969 3 жыл бұрын
The trailing slash makes it sync the contents of the directory only. If you remove the slash, it syncs the parent folder AND the contents.
@bbolin711
@bbolin711 6 жыл бұрын
rsync is an excellent tool for keeping backups. Using rsync with ssh keys and cron is even better to automate. I always suggest keeping /home as a separate filesystem in case you need to reload the OS. Another tip for OS (the brick) backups is using lvm snapshots or another one is Rear ( relax-and-recover.org/ ) Using -k with man can be handy also if your not sure what your looking for man -k rsync librsync (3) - library for delta compression of streams rsync (1) - a fast, versatile, remote (and local) file-copying tool rsyncd.conf (5) - configuration file for rsync in daemon mode
@willgilliam9053
@willgilliam9053 6 жыл бұрын
Awesome video about an awesome tool!
@iflnr978
@iflnr978 5 жыл бұрын
thumbs up, exactly what i wanted to know, from my point of view, minute 4:39 " that's really complicated sounding, just trust me on this, you want to put a trailing slash on your source name" 5:52. i came to watch your video precisely because i want learn from you, why are you trying to convince me take your word for something? if i didn't trust you, i would watch someone else's video.if i think adding a slash is stupid, i'll leave it off, and good luck to me, right? computer networking is in many ways complex. not in every single way, but many ways, so explaining a path is ok to do, no apologies needed, no dumbing down needed and the words are not confusing. if they turn someone off, maybe they should be watching some other video. this is one of my pet peeves, more has to do with me than your video which is really good, thumbs up etc, thanks for taking the time to make the video and post it here, thank you. this is my honest reaction, i am not trying to be mean, it's just that if you relate to what i am saying, you might consider it in future videos, if not, no big deal, i'll still watch and enjoy, thanks
@mrmotofy
@mrmotofy 2 жыл бұрын
Synkron or GRsync are pretty good easy to use GUI for Rsync if you want to just check boxes
@luke752010
@luke752010 5 жыл бұрын
Outstanding video! Can I use rSync also for cluster computer in order to sync the files changes between the nodes ? For example implementing an http load balancer and my target is to keep in sync all data changes between nodes (severs). So if a file has been changed on one server I need to propagate the changes on the other nodes servers...
@bharat_kumar_tech8714
@bharat_kumar_tech8714 4 жыл бұрын
informative. Thank you very much
@sledziuYT
@sledziuYT 5 жыл бұрын
Hello, great video first of all. I have question, is there possibility or script to run automatically Rsync when i plug Pendrive into PC and copy all of content from USB stick to folder on computer?
@meggrobi
@meggrobi 5 жыл бұрын
If you use Windows as well then Delta copy is good choice to use rsync on both platforms.
@Jimwill01
@Jimwill01 6 жыл бұрын
I learned on a DOS machine. So the command line doesn't bother me. Of course when I first got into linux I had problems like typing "dir" instead of "ls", but now it is the other way around - I have more problems on Windows command line than I do on linux! :)
@bernarrcoletta7419
@bernarrcoletta7419 6 жыл бұрын
J. Williams Do you get the slash symbols backwards too? ;)
@iflnr978
@iflnr978 5 жыл бұрын
is it stable yet?
@salat
@salat 6 жыл бұрын
You can do a poor man's versioned backup (using a target filesystem that supports linking) with the parameter '--link-dest'. I use it to keep the last 30 backup version without wasting too much space - until ZFS with native encryption is stable :)
@Liv4IT
@Liv4IT 4 жыл бұрын
Thanks for sharing ;)
@sengokugensui4129
@sengokugensui4129 5 жыл бұрын
4:27 rofl click multiple times for lolz. Great video! thanks!
@SwiatLinuksa
@SwiatLinuksa 4 жыл бұрын
Thanks!
@greywolfe6444
@greywolfe6444 5 жыл бұрын
You spoke of backing up to file server, but did not show an example. Would have been nice to see.
@NoEgg4u
@NoEgg4u 3 жыл бұрын
Greetings: Three questions, which will help me switch from Windows to Linux, without having to worry when things go wrong: 1a) If I edit a file every day, and I also use rsync ever day, then that will ensure that my latest version of my file is backed up. After several days, I realize that I screwed up the file 3 days ago. But rsync has been running every day. So I have no way to see the file, as it was, 3 days ago. A program that does true incremental backups will have the image of your source, exactly as the source was, each time the incremental backup had run. 1b) Same thing for a file that got deleted, but you did not realize that it got deleted. So the --delete option now mirrors your mistaken deletion to your backup folder. Now, instead of being able to retrieve a copy of the accidentally deleted file, it is gone, because rsync made a new image each day, and did not preserve the image from each day that the backup was run. Does rsync have any options that will keep you backup image, as it was, each time you ran the backup? If not, is there a different backup program that will do this? 2) If my computer will not boot, due to missing or corrupt files, then is it a simple matter of booting from a live USB flash drive, that will have rsync on it, and in that session I will be able to use rsync to copy files back from the backup drive to the computer's internal boot drive? 3) I want my backup, which will be stored on an external USB drive, to be encrypted. I use VeraCrypt on my Windows PC, and that free, open source program is available for Linux. Will I be able to mount a USB based, VeraCrypt encrypted partition and have rsync use that for the destination, and also be able to do restores in a similar manner? Will I be able to boot from a USB flash drive that can run both VeraCrypt (to mount the external, encrypted partition) and also run rsync to restore files? I am currently running Windows, and I am determined to ditch Windows, in favor of a Linux distribution. But I want to be sure that I can undo the mistakes that I am sure to make with my first venture into the world of Linux. For Windows backups, I am using Acronis' True image. It is graphical. But it does allow you to open a bash terminal if you use its bootable media. The program backs up everything exactly as I described in my above questions. Every incremental stands on its own, representing that day's file versions. I would like the same peace of mind with a standard backup program from a Linux repository, that I can use when I soon start running Linux. Thank you.
@loughkb
@loughkb 3 жыл бұрын
rsync is a specific tool for a specific job. If you want a full managed backup program with incremental and history, there are a few. A search on "linux backup tools" will probably find them for you. And yes, a veracrypt mounted volume is accessible. It gets mounted into the file tree just like any other storage device.
@mostafashawki
@mostafashawki 4 жыл бұрын
Awesome video, thank you. Could you tell what software do you use for screencasting? Thanks in advance :)
@loughkb
@loughkb 4 жыл бұрын
OBS. Its available in the repositories.
@mostafashawki
@mostafashawki 4 жыл бұрын
@@loughkb Many thanks :)
@dominus6695
@dominus6695 2 жыл бұрын
The bots I use have a lot of files and it gets slow AF to use this with all that comparing files that are constantly changing. Will be copying via SFTP or so. Any tips to make it faster, welcome.
@andydavies27
@andydavies27 3 жыл бұрын
Thanks - combined with a cronjob this can easily replace a prebuilt NAS
@john-r-edge
@john-r-edge 2 жыл бұрын
Good stuff. Does this take "dot" folders across? There is a GUI app Grsync which puts a GUI over rsync; tho it does show the rsync command it is about to execute - so instructive too.
@loughkb
@loughkb 2 жыл бұрын
Yes, it will copy all hidden files as well. the -a flag puts it in 'archive' mode and it should get everything when run as superuser.
@mandrael
@mandrael 3 жыл бұрын
So you describe how to mirror a source to a destination, but how to _backup_ ist with rsync? This means there are _versions_ or at least a subfolder with deleted or changed files.
@Scott-K7sce
@Scott-K7sce 6 жыл бұрын
as a linux person since 2003 i'm not afraid of the terminal, i use it quite often
@exploretheworld17
@exploretheworld17 5 жыл бұрын
thanks for sharing , however seems not related to the video
@jeffminnick5209
@jeffminnick5209 6 жыл бұрын
Which repeater do you usually monitor 2m?
@loughkb
@loughkb 6 жыл бұрын
The 146.91 machine. I listen off and on through the day.
@ChioTB
@ChioTB 5 жыл бұрын
hmm! you did kind of backup . but what about restore ?? or is just copy the file you synchronize from to the same folder ? that's it? or? ... any how there is also another method , a software called " Grsync " for me this (Grsync) is very difficulte ..
@loughkb
@loughkb 5 жыл бұрын
To restore, do the same but switch the source and destination file paths.
@JanBusk
@JanBusk 6 жыл бұрын
Check out borg. Super easy backup tool with version handling, encryption etc. Almost a life changer for me.
@salat
@salat 6 жыл бұрын
Thanks for that! I see it can deduplicate - even saves space on moved files, etc. Gave it a try and like it!
@iflnr978
@iflnr978 5 жыл бұрын
thanks, but now; 2019 Aug, what do you think about ZFS encryption and zdev mirrors? is that ready ready for use? if so, how does it compare to borg?
@quaternion-pi
@quaternion-pi 6 жыл бұрын
Very helpful. Can you use the same trick to find the location of network attached servers on your intranet? -73 de K6CCA
@loughkb
@loughkb 6 жыл бұрын
You could find the path to where it's mounted on your computer. If that's what you mean.
@blueconcretezebra
@blueconcretezebra 11 ай бұрын
Rsync is far from easy to get working as you describe. It has far too may switches, which have vague descriptions. If you are on a local network use cp with the update switch for a more predictable result. Over the net, well try rsync but be prepared for frustration.
@auj5901
@auj5901 5 жыл бұрын
what if I already have separate stuff on my hard drive and I only want to sync one or two folders? I'm scared my entire drive will delete
@loughkb
@loughkb 5 жыл бұрын
Use the same command, but narrow it down to the specific folder paths. Rsync can sync devices, single folders, or even individual files. Just use the complete path.
@auj5901
@auj5901 5 жыл бұрын
@@loughkb Thank you! I did it with fingers crossed. It worked. Thank you for helping with your video. Do you know if it's possible to set up as a cronjob?
@loughkb
@loughkb 5 жыл бұрын
Yes. That's how we did it on our servers the last place I worked.
@jeep456789
@jeep456789 4 жыл бұрын
Need more options
Linux Tip | Using SFTP and Automating Rsync
20:45
Joe Collins
Рет қаралды 24 М.
Use Rsync To Save Your Life
15:28
The Linux Cast
Рет қаралды 10 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 176 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 34 МЛН
Backups in Linux - HOW and WHERE to do it!
14:47
DorianDotSlash
Рет қаралды 90 М.
Backups: You're doing 'em wrong!
8:53
Jeff Geerling
Рет қаралды 286 М.
Linux Backup with TAR and Cron Jobs
35:33
Eli the Computer Guy
Рет қаралды 249 М.
Easy rsync Backup with tar and cron (daily, weekly, monthly)
22:14
Tony Teaches Tech
Рет қаралды 47 М.
Linux Tip | Create and Restore Backups
23:22
Joe Collins
Рет қаралды 89 М.
Linux Tip | Making Backups with Grsync
16:02
Joe Collins
Рет қаралды 27 М.
Don't Lose Your Data Like a Dummy
20:48
Snazzy Labs
Рет қаралды 149 М.
How to Use rsync to Reliably Copy Files Fast (many examples)
22:06
Tony Teaches Tech
Рет қаралды 29 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4,1 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 468 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
Самые крутые школьные гаджеты
0:49