27
rsync command for mirroring drives
(lemmy.ml)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
There's also
--delete-beforewhich might help if your destination is tight on available space. And, as usual with 'traditional' tools, man-page is pretty good, there's a ton of parameters which might be helpful. And, as @hades@feddit.uk already mentioned, compression (-z) may actually hurt performance if you have a lot of bandwidth or if you're copying over already compressed data like JPGs.I wasn't aware of the full impact of
-z. Thanks for clarifying that for me (thanks to @hades@feddit.uk as well!). I'll definitely keep an eye on the speed with-zvs without it when I do my next dry run.If I'm not mistaken, dry-run (-n) doesn't give you the results as it doesn't actually transfer nor compress data. It's only useful to verify that the command you'll testing will actually do what you want. For performance measurement you can use
--progressand--stats.Thanks! good to know. I'll keep that in mind.