Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Newbie learning Rsync

Featured Replies

I need to move the files from one disk to another for the purpose of reformatting a disk from btrfs to xfs.  I want to make sure I do this the right way.  So I plan to use rsync (just starting to us that vs CP) but its gots LOTs of options.  When considering what unRaid does with files, is there a specific set of options I should use?  I'm considering the following...

 

rsync -avWz --progress /mnt/disk5/movies/ /mnt disk2/movies/

 

-a for recursing through the directories

-v for verbose info (just while I get familiar with what its doing...)

-z to compress data during transfer (several TB, so gain a bit of efficiency?)

-W to move only whole files

 

Better set of options to use?  Thanks for the wisdom!

 

  • Author

So just playing around and tried a couple different structures.

 

Start with -avWz - VERY slow...I guess the compression is costly...probably only useful for xfer across the internet...

root@HunterNAS:/mnt# rsync -avWz --progress /mnt/disk5/movies/ /mnt/disk2/movies/
sending incremental file list
created directory /mnt/disk2/movies
./
Celtic Woman/
Celtic Woman/Celtic Woman - Jesu Joy of Man's... (SD).mp4
     12,936,567 100%   24.61MB/s    0:00:00 (xfr#1, to-chk=592/700)
Netflix - to buy/
Netflix - to buy/Batman/
Netflix - to buy/Batman/The Dark Knight Rises.m4v
  2,532,425,616 100%   22.66MB/s    0:01:46 (xfr#2, to-chk=562/700)
Netflix - to buy/Batman/The Dark Knight.m4v
  2,340,816,064 100%   19.21MB/s    0:01:56 (xfr#3, to-chk=561/700)
...

 

Remove -z - big difference...sort of...after a couple much faster copies, it trails off to slow speeds...must be buffering?

 

root@HunterNAS:/mnt# rsync -avW --no-compress --progress /mnt/disk5/movies/ /mnt/disk2/movies/
sending incremental file list
Netflix - to buy/Better off Dead/
Netflix - to buy/Better off Dead/Better Off Dead.m4v
    633,242,613 100%  131.56MB/s    0:00:04 (xfr#1, to-chk=560/700)
Netflix - to buy/Better off Dead/Better Off Dead.mp4
    308,799,869 100%  100.65MB/s    0:00:02 (xfr#2, to-chk=559/700)
Netflix - to buy/Blade Runner/BLADE_RUNNER_ARCHIVAL_VERSIONS_Title1.mp4
  2,289,103,762 100%   51.97MB/s    0:00:42 (xfr#3, to-chk=558/700)
Netflix - to buy/Blade Runner/BLADE_RUNNER_ARCHIVAL_VERSIONS_Title2.mp4
  2,318,663,874 100%   34.90MB/s    0:01:03 (xfr#4, to-chk=557/700)
Netflix - to buy/Blade Runner/BLADE_RUNNER_ARCHIVAL_VERSIONS_Title3.mp4
  2,313,353,794 100%   50.77MB/s    0:00:43 (xfr#5, to-chk=556/700)
Netflix - to buy/Blade Runner/Blade Runner - DVD Menu.mp4
     25,364,358 100%   22.50MB/s    0:00:01 (xfr#6, to-chk=555/700)
Netflix - to buy/Blade Runner/Blade Runner - International Cut w-Intro - Feature.mp4
  2,347,001,276 100%   34.53MB/s    0:01:04 (xfr#7, to-chk=554/700)
Netflix - to buy/Blade Runner/Blade Runner - The Directors Cut - Intro.mp4
     13,627,832 100%    9.69MB/s    0:00:01 (xfr#8, to-chk=553/700)
Netflix - to buy/Blade Runner/Blade Runner - The International Cut - Intro.mp4
    365,235,343 100%   30.02MB/s    0:00:11 (xfr#9, to-chk=552/700)
Netflix - to buy/Blade Runner/Blade Runner - The Theatrical Cut - Intro.mp4
    232,131,182 100%   29.27MB/s    0:00:07 (xfr#10, to-chk=551/700)
...

 

 

Whenever I have questions about RSYNC I just read the man page and that usually helps.

 

A few things.

 

1) The -a flag is generally what you want, but it does a lot more then just recurrusion.

2) Some users will find -X as helpful as well since they have information in extended attributes that they want to keep.

3) I do not recomend -zon your first rsycn run, it's better on recuring runs (after the first) when you are only doing the difference and not transfering GB or TB of data. Also I think it really is ment for transfers accorss a network instead of local copying.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.