Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    As zerodeuz specified, use "df" only when you are rsyncing the whole partition, as df -i /source gets the number of inodes (files) from all the partition in which /source reside. Otherwise use 'find' to count files inside a directory inside the "$()" expression.
    – lepe
    Commented Sep 17, 2015 at 1:43
  • 1
    An alternative to du or find - let's say you're finishing an incomplete copy or doing an in-place update with deletes - is to use rsync -ai --dry-run to get the same file list the main run will be passing to pv
    – Izkata
    Commented Apr 24, 2016 at 6:07