rsync is a Based File Sync Program (& if you don't use it, you're wrong.)

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 227

  • @lethaltty
    @lethaltty 4 года назад +200

    My brain: "You've been using rsync for years, you already know this"
    Also my brain: "Yes, but I want to hear Luke tell me about it"

  • @augustintacquet488
    @augustintacquet488 4 года назад +63

    This new Pajeet sound effect is really cool !

  • @HolyMarmot
    @HolyMarmot 4 года назад +53

    I use rsync a lot, because it's when the transfer happens, it's important to inherit the permissions and attributes.

    • @fghsgh
      @fghsgh 4 года назад +4

      cp -a does that as well

  • @_foldr
    @_foldr 4 года назад +175

    How long until we have a node.js version of the coreutils? Will it be named soyutils?

    • @p_serdiuk
      @p_serdiuk 4 года назад +4

      At least we already have busybox.

    • @_MPP_
      @_MPP_ 4 года назад +34

      I really want coreutils as a webapp made with 40 different frameworks and technologies.

    • @user-hi8jf1hu4p
      @user-hi8jf1hu4p 4 года назад +1

      what a nightmare

    • @letsgooo7713
      @letsgooo7713 4 года назад +9

      www.npmjs.com/package/cash

    • @_foldr
      @_foldr 4 года назад +7

      @@letsgooo7713 Ok, I'm out

  • @simonedeiana2696
    @simonedeiana2696 4 года назад +94

    rsync to move stuff around my network
    1990s toyota pickup to move stuff around my property
    walking to move myself around wood trails

    • @JanuszBiedronka
      @JanuszBiedronka 4 года назад +1

      I think you mean an old subaru forester with the seatbelts ripped out

    • @copper4eva
      @copper4eva 4 года назад +4

      toyota pickups are pretty based
      Too bad they don't make the 70 series LC for the USA.

  • @Frozander
    @Frozander 4 года назад +60

    Luke just blew my eardrums at 10:29

  • @AdmV0rl0n
    @AdmV0rl0n 4 года назад +8

    Thanks for the video. I think many people don't understand the problems with man pages is the sheer depth of data in them. My one feedback to anyone teaching command line stuff to the masses is do what you did here, show the command with actual use cases and explain them. In so many cases, the man pages will tell a user how to do 10,000 things, but the average usage cases are really a smaller subset which many people would find very useful if they could get the narrowed down + examples. Once they understand the examples, its then much easier to absorb the additional options in the man pages.

  • @strakhov
    @strakhov Месяц назад

    If I hadn't watched this video, I would never have learned about rsync as a tool to use for my projects. Thank you so much for the content you create Luke!

  • @AndyMcClements
    @AndyMcClements 4 года назад +76

    rsync ?? That's proper old-skool, I used that in my early days as a sysadmin in the mid-late '90's. Good to know some folks are still appreciating the simplicity and goodness of stuff that predates the horror of the modern Linux world.

    • @2Worlds_and_InBetween
      @2Worlds_and_InBetween 4 года назад +6

      before there was easy p2p progs, we used to scan for open ports, creating a folder deep in, turn off read, allow anon ftp.
      and
      share the ip and path/to/the/warez
      in alt. bin. ftp groups
      (aka the zoo found by local.newbie.school)
      rsync and FXP ftw on 14.4k

    • @jonathanwarner1844
      @jonathanwarner1844 4 года назад

      Rsync is old skool and new skool too.

    • @entelin
      @entelin 3 года назад +3

      rsync is not "proper old-skool" it's a core tool widely used today.

    • @doslashzero
      @doslashzero 3 года назад +8

      @@entelin exactly, it's like saying sudo is old school. What's up with these people lol

    • @PaperBagMan884
      @PaperBagMan884 2 года назад +1

      Old school = best school, not even a boomer either lol

  • @anasouardini
    @anasouardini Год назад +1

    Holly cow, I was running a git server on my lan for backup when I could've just used this.

  •  4 года назад +1

    The thing that's cool about your stuff is that this is a way to create your own entire systems. These days we all use simple things like gmail, office, onedrive/dropbox, externally managed calendars. But your videos inspire me to build my own appliances.
    All the privacy and control, and thanks to your video's easy to pick up. Thank you! 😊
    (Except, I will need to spend more for my own 2x1TB raid 1 cloud storage application.)

  • @jonathanwarner1844
    @jonathanwarner1844 4 года назад +3

    A really useful feature is that rsync does not mirror by default, i.e. unless you set the --delete switch, it does not delete files at the destination that have been deleted at source. This is useful for a safety backup, so if someone accidentally deletes a file, the file is always guaranteed to still be in the backup. Of course this does not apply to files that have been changed. This feature can have other potential uses too. Another really useful feature is being able to skip directories such as the many application specific directories.

  • @philippebeaureilles2416
    @philippebeaureilles2416 4 года назад +3

    I use rsync as a replacement of robocopy since I switched to Linux. Thanks for the video.

  • @lachlana7738
    @lachlana7738 4 года назад +2

    Great to see you finally covering rsync. Its an awesome tool that everyone should use

  • @mke7605
    @mke7605 4 года назад +1

    rsync has been a lifesaver for me many times.

  • @aequanimus63247
    @aequanimus63247 4 года назад +2

    I use rsync at work hundreds of times a day. A great little program.

  • @phineasg7709
    @phineasg7709 4 года назад +301

    Boomer switches to pajeet mic after 11 minutes of ranting.

    • @a_maxed_out_handle_of_30_chars
      @a_maxed_out_handle_of_30_chars 4 года назад +7

      This comment is gold :)

    • @liamsweeney4754
      @liamsweeney4754 4 года назад +10

      10:28

    • @user-tm3fz7qx3s
      @user-tm3fz7qx3s 4 года назад +15

      Hello! Welcome to tutorial. How to website, now turn on server and listen to me talk out presentation points!

    • @Hammid
      @Hammid 4 года назад

      rooooooooofl 😂👏🏻

    • @Sheradhien
      @Sheradhien 3 года назад

      @Warren Tristian comments that both posted 3 days ago?! How coincidental!

  • @GeorgijTovarsen
    @GeorgijTovarsen 4 года назад +17

    I need a java implementation of soygrep so bad

  • @Thomas-vd7ez
    @Thomas-vd7ez 4 года назад +4

    Hi. After hearing you comment about the size of your video file, I was wondering if you could talk a bit about how you choose and store your video encodings for your channel and maybe for your family home videos.

  • @liquidsnake6879
    @liquidsnake6879 3 года назад +1

    At my second job we developed a whole deployment system using rsync, it worked very well actually and had a nice GUI people could use to deploy their stuff, was a huge upgrade from the SFTP processes they had when i got there lol

  • @dkk9819
    @dkk9819 4 года назад +1

    Oh damn, I didn't even know this existed. Thanks a lot Luke

  • @M1America
    @M1America 4 года назад +3

    Rsync is awesome. And its creator is also really awesome. He works on open source drone technology now. His name is Andrew Tridgell. Really cool guy.

  • @LawrenceHe
    @LawrenceHe 4 года назад

    wish you uploaded this sooner, while I was following your website tutorial and wanted to update my site, took me two days before I discovered the scp command

  • @Link-channel
    @Link-channel 3 года назад

    I enjoyed the bonus track at the end

  • @victorprokop2240
    @victorprokop2240 4 года назад +5

    That ending was loud good god lol

  • @hassanawodi5888
    @hassanawodi5888 4 года назад +2

    It's my #1 Linux utility. And it's insanely fast.

  • @antidote345
    @antidote345 3 года назад +2

    Rsync by default uploads only the files which have been changed. Your explanation about "-u" option needs to be corrected. "-u" option allows you to preserve files in destination which have newer modification time.

  • @wjrasmussen666
    @wjrasmussen666 Год назад

    rsync is very powerful and a tool I used daily back in the day.

  • @andreydrobyshev2900
    @andreydrobyshev2900 4 года назад +3

    8:25 What this "se" alias stands for? Some dmenu magic?

  • @joeg.2976
    @joeg.2976 4 года назад +2

    Wehre can I get your background-Image. It Looks nice.

  • @HansPeter-qg2vc
    @HansPeter-qg2vc 4 года назад +1

    Around minute 8, you talked about not wanting to ssh into your server to make small changes. Presumably because your internet connection is bad and you'd have to wait for every keystroke to do something. You see, if you were using Emacs, you wouldn't have that problem. You wouldn't need to ssh into your sever. Instead, you'd run Emacs on your local machine, it'd remote mount the server's file system automatically, and you could edit the file just as if you were editing locally.

    • @adamk.7177
      @adamk.7177 7 месяцев назад +3

      Yeah, but then you'd be using Emacs

  • @tyrrelldavis9919
    @tyrrelldavis9919 4 года назад +3

    People keep telling me to use rsync, might have to check that out

  • @microcolonel
    @microcolonel 4 года назад +2

    Syncthing is really good, for continuous sync.

    • @nykal1510
      @nykal1510 4 года назад +2

      I use Syncthing between PC and Android

  • @elrisitas8508
    @elrisitas8508 4 года назад +1

    can you do the same thingswith git? because i recall hearing funtoo uses git for their package repos as opposed to gentoo which uses rsync
    supposedly it's faster or something, maybe the use cases are different and not comparable?

  • @codebitcookie8053
    @codebitcookie8053 4 года назад

    Thank you so much for this. I wish I found this out sooner.

  • @munjozviz
    @munjozviz 4 года назад +3

    Program "rsync" je alat koji svaki linux server administrator mora u malom prstu da drži. Namerno pišem na maternjem jeziku, da vidim da li će neko van mog govornog područja upotrebiti google translate. Mada, linux jezik je isti širom univerzuma. Živeo Luke Smith!

  • @raptorinc8331
    @raptorinc8331 4 года назад +1

    Thanks Luke! I was using scp for uploading files. Rsync seems better.

  • @matroqueta6825
    @matroqueta6825 4 года назад +1

    i could not pay attention because i kept wondering what thermalpaste_foryt.mp4 contains and why it is in home directory

  • @kilimanjarocruz660
    @kilimanjarocruz660 4 года назад +5

    I tend to use rsync for my backups, as a cron job. But when I want to manually copy something via ssh, I tend to use scp. Are there any benefits to use rsync in this case instead?

    • @AvindraGoolcharan
      @AvindraGoolcharan 4 года назад +4

      Yes. rsync -e 'ssh -ax' will funnel your files over ssh. rsync is better than scp because it supports resuming if the transport fails, and only transfers the necessary bits.

    • @laszu7137
      @laszu7137 4 года назад

      @@AvindraGoolcharan That's an anachronism. In current version of rsync it is not necessary to declare the "-e ssh".

    • @AvindraGoolcharan
      @AvindraGoolcharan 4 года назад

      @@laszu7137 thx, good to know... been using rsync to deploy for a while, will be glad to drop this bit.

    • @laszu7137
      @laszu7137 4 года назад +1

      @@AvindraGoolcharan Just keep in mind it might not work the same way everywhere. I've seen some systems interpret the syntax differently and use some other port for the connection, which caused problems.

  • @lunarpassion
    @lunarpassion 4 года назад

    Ok, waiting for Luke to tell us all youngsters about ls, cp and mv

  • @kotgc7987
    @kotgc7987 Год назад

    Rsync vs Syncthing? Looking for a solution for Logseq to Ubuntu desktop and iPhone X.

  • @ropersonline
    @ropersonline 4 года назад +1

    10:52: That's verbose, not visual.
    Also, did you know about openrsync? If not, it's a reimplementation under a nicer license, so rsync could become part of OpenBSD's core utilities. When they reimplement the same thing elsewhere in Unix-land, that's when you know the program is becoming part of the standard Unix toolkit.

  • @pazu_513
    @pazu_513 4 года назад

    I was just wondering what would be a good filesyncing program. Thank you, very cool!

  • @user-ro1cc8tz6d
    @user-ro1cc8tz6d 4 года назад

    rsync indeed works using that protocol

  • @Weirdcko
    @Weirdcko 4 года назад

    I've always used scp for transferring files between machines. What's the difference?

  • @dasenase
    @dasenase 4 года назад +1

    Rsync is really great if you have a local file server

  • @flleaf
    @flleaf 3 года назад

    I've been using scp all the time and now I'm confused what are the differences

  • @porky1118
    @porky1118 4 года назад

    so rsync=cp&scp, where the -u option also applies to scp, and a new -P option for backups and some other fancy stuff, you probably won't need

  • @favorite89103
    @favorite89103 4 года назад +1

    what's that script you got there named "se"?

  • @volt8399
    @volt8399 4 года назад +1

    Thank you Senpai

  • @FranciscoMarcosMilhomemAbreu
    @FranciscoMarcosMilhomemAbreu 3 года назад

    What is your suggestions for sync directories automatically or to mount through network?

  • @AnonEMoose-mr8jm
    @AnonEMoose-mr8jm 4 года назад +3

    I had a client that wanted an automated backup solution for his linux server. I wrote an rsync script in Perl. Needless to say he wasn't impressed but it did exactly what he wanted.
    I think my client imagined that I'd create his own version of Filezilla in an afternoon. Hard to please normies.

  • @perseusarkouda
    @perseusarkouda 4 года назад +1

    soygrep is a powerful program. I use it all the time!

  • @madokalover
    @madokalover 4 года назад +2

    I use scp to copy my files over to remote computers. What are the advantages of scp and rsync?

    • @epajarjestys9981
      @epajarjestys9981 4 года назад +1

      Maybe watch the video or read the manpage.

    • @wiktorwektor123
      @wiktorwektor123 4 года назад

      @@epajarjestys9981 Today people don't want to think for themselfs, they want someone answer all their questions NOW and in FullHD video or they will be unhappy and frustrated.

  • @spiveeforever7093
    @spiveeforever7093 4 года назад

    Now I can edit html in a local git repo, git push to a bare repo on my VPS, then rsync to /var/www/ on the same VPS. It's big brain time.

  • @abuk95
    @abuk95 4 года назад +1

    What is this 'se' command/script?

  • @huyvole9724
    @huyvole9724 Год назад

    Hi Luke Smith, what happend if we dont use "--update", I mean just "rsync -rv" ??

  • @dko1905
    @dko1905 4 года назад

    Please make a video about gopher sites and the gopher protocol.

  • @_MPP_
    @_MPP_ 4 года назад +6

    I can't live without cronjob'd rsyncs.

  • @lencumbow
    @lencumbow 4 месяца назад

    rsync wrapped inside of rsnapshot is awesome. rsnapshot (when driven by cron) creates generations of differential backups that are based on symbolic links.

  • @duoquote2695
    @duoquote2695 4 года назад +1

    would like to see borg backup here

  • @marcello4258
    @marcello4258 Год назад

    Afaik rsync also supports checksumming do verify the files are 1:1 cp does not neither does sftp

  • @entelin
    @entelin 3 года назад +4

    I use and appreciate rsync. However rsync (and unrelatedly, hardware raid controllers) are made obsolete by zfs and btrfs with snapshots, replication, with striped mirrors or parity. You should be using one of the two for important data that don't have a significant enough performance requirement that necessitates a non cow filesystem like ext4 or xfs. RSync is certainly a great tool for file transfer vs a simple cp over ssh or whatever. However thanks to the nature of cow filesystems snapshots can be made nearly instantaneously providing built in versioning, and because of this all the work rsync needs to go through is unnessesary and in many cases zfs can be massively faster (in terms of cpu usage and local io), and use less bandwidth as well.

  • @PTKWO
    @PTKWO 4 года назад

    What do you think about chunk-based backups like Borg?

  • @mega-flare
    @mega-flare 4 года назад

    Hi Luke. Thoughts on Matrix protocol ?

  • @rudde7251
    @rudde7251 4 года назад

    Dude. What is your background image?

  • @oneplus2668
    @oneplus2668 4 года назад

    a mention of `scp` would've been cool. I'd say that's the unix "equivalent"

  • @MrRenanwill
    @MrRenanwill 4 года назад

    Do you mean that im wrong by cat'ing my 1gb file through ssh is not a good idea?

  • @user-zw8nb1po1j
    @user-zw8nb1po1j 4 года назад

    wonder what that camera is for?

  • @SGOrava
    @SGOrava 4 года назад +6

    Yes, you can just scare me with that audio at the end.

  • @eduardolima5052
    @eduardolima5052 4 года назад

    Great video Luke.
    You have mentioned using SSH instead of user and password. I wonder if you have a video explaining SSH?

    • @linuxramblingproductions8554
      @linuxramblingproductions8554 2 года назад

      Do you mean ssh keys because ssh requires a user name and password otherwise unless you leave it without one which is asking to get hacked

  • @emilioestevezz
    @emilioestevezz 4 года назад

    you update your website with rsync? too cool for version control?

  • @yomajo
    @yomajo Год назад

    Comparison with rsync service would have been nice

  • @tyisafk
    @tyisafk 4 года назад

    What DE is that? i3? I'm thinking of getting back into Linux and this looks VERY nice! I'd love to try a tile based DE and your setup looks like it has mouse support.

  • @hanspetervollhorst1
    @hanspetervollhorst1 4 года назад

    How do you log on to your desktop with ssh without having to enter any credentials?

    • @hanspetervollhorst1
      @hanspetervollhorst1 4 года назад

      Is this what happens if your private key is not secured by a password?

  • @cepi24
    @cepi24 4 года назад +1

    Fo next video i recommend unison ;)

  • @nateedwards1313
    @nateedwards1313 4 года назад

    Does this work with Wayland?

  • @nikita-bobko
    @nikita-bobko 2 года назад

    I don't understand what is so special about rsync. The showed use-cases are covered by cp and scp. The only use I find for the rsync is `--partial` and `--progress`

  • @bruderdasisteinschwerermangel
    @bruderdasisteinschwerermangel 4 года назад

    15MB/s in the local network? that seems oddly... slow

  • @pt8306
    @pt8306 3 года назад

    I prefer git for anything website related, because it has dat audit trail. But rsync is pretty amazing.

  • @marekjakimowicz
    @marekjakimowicz 4 года назад

    Do rsync works with some cloud storage?

  • @Canadian789119
    @Canadian789119 4 года назад

    Luke can I use it to sync files to my Music player?

  • @Karloffspring
    @Karloffspring 4 года назад

    rsnapshot has saved my ass a few times: it uses rsync and cp together to create backups. It's FOSS (of coss!) and I've used it to create a live backup server for a company that made backups but never used them because they were too much hassle to get at (!). The backups were available (read-only) to everyone who needed them, and they didn't have to ask me to find them for them. When they messed up, as everyone does, they could fix it themselves.

  • @hacerdemirel9833
    @hacerdemirel9833 4 года назад

    What is 4C7DE2A5267EC851 ?

  • @Viken43
    @Viken43 4 года назад

    Use it for uploading ArchBang to sourceforge....

  • @cookiedestroyer402
    @cookiedestroyer402 4 года назад

    but can it be integrated with DIRED?

  • @almasabdrazak5089
    @almasabdrazak5089 4 года назад

    Boomer here, 6:34 why don't you just push your changes to git and pull them in your site ?

  • @lukasdrz5549
    @lukasdrz5549 4 года назад

    Can you make a vidéo on NixOS ? Plz !

  • @glowiak3430
    @glowiak3430 4 года назад +1

    "ssh: Could not resolve hostname dom: Temporary failure in name resolution
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(228) [sender=v3.2.3]" Yes, very useful

    • @randykitchleburger2780
      @randykitchleburger2780 3 года назад

      If you can't figure this out... Mannn...

    • @glowiak3430
      @glowiak3430 3 года назад +1

      @@randykitchleburger2780 Yeah my mistake forgot to turn ssh on

  • @jeremyjohansson3445
    @jeremyjohansson3445 4 года назад

    I used scp all the time. When I found out about rsync my mind was blown :P

  • @benj6964
    @benj6964 4 года назад

    your affiliate links don't work, do they ?

  • @tsiiphsycoii
    @tsiiphsycoii 4 года назад

    Ive been using scp but i really should try rsync as its more powerful

  • @dany3370
    @dany3370 4 года назад

    What is that *se* command at 8:26

    • @iNeedPhone
      @iNeedPhone 4 года назад +1

      looks like fzf (fuzzy finder)

  • @milesrout
    @milesrout 3 года назад +1

    Reject (soydev) modernity, embrace tradition(al UNIX tools)

  • @biehdc
    @biehdc 4 года назад

    what exactly does "delete-after" do?

    • @LukeSmithxyz
      @LukeSmithxyz  4 года назад +1

      Let's say you're updating a directory with files that have been deleted. --delete-after removes deleted files after adding the new files, while --delete-before deletes them before transfering new files (in case you are close to running out of space).

    • @biehdc
      @biehdc 4 года назад

      @@LukeSmithxyz so basically like a "git rm" between two commits?

  • @mohamedfouad6492
    @mohamedfouad6492 4 года назад

    advantages compared to git?

  • @user-ex6xc5ox3k
    @user-ex6xc5ox3k 4 года назад +4

    So basically just scp?

  • @sewerside01142
    @sewerside01142 3 года назад

    >literally has 3 folders in his ~
    Teach me your ways

  • @nzagorsky
    @nzagorsky 4 года назад +8

    Boomer: You have to write things to work fast, every millisecond matters
    Also boomer: No need to replace grep, grep is gud

    • @LukeSmithxyz
      @LukeSmithxyz  4 года назад +8

      No one is going to install a dumb fan-fiction knock-off version of grep just to run a basic script.

    • @komolunanole8697
      @komolunanole8697 4 года назад +7

      @@LukeSmithxyz Depends on the usecase, if I want to recursively search through a couple gigabytes, ripgrep beats grep by a couple orders of magnitude. Example on a 6.4G folder on my harddrive: ripgrep took 0.88s, grep took 27.5s
      For just filtering a stdout stream, I'd use grep.

  • @tobiasthrien1
    @tobiasthrien1 4 года назад +2

    Luke: *too lazy to increase fontsize*
    360p gang: :(