Open mgutt opened 3 years ago
Because the sender couldn't open the file, it didn't make it into the file list, so it was not counted at all. So, all those numbers are correct, there's just no mention of "Unreadable files: 1" in the stats at this time.
But why are they mentioned under "created" although they aren'T?
As another example. A friend had a defective RAID1 and some files were sucessfully transfered, but many of them not. Example:
Files in source:
find /mnt/nvme0n1p1 -type f | wc -l
9137
Files in destination:
find /mnt/disk2/nvme0n1p1_backup -type f | wc -l
4646
rsync stats:
Number of files: 9,377 (reg: 9,137, dir: 240)
Number of created files: 9,377 (reg: 9,137, dir: 240)
Number of deleted files: 0
Number of regular files transferred: 13,628
Total file size: 315,018,363,492 bytes
Total transferred file size: 602,891,660,116 bytes
Literal data: 602,891,660,116 bytes
Matched data: 0 bytes
File list size: 131,056
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 603,039,596,692
Total bytes received: 272,518
sent 603,039,596,692 bytes received 272,518 bytes 236,439,862.46 bytes/sec
total size is 315,018,363,492 speedup is 0.52
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]
Script Finished Jan 23, 2021 00:29.13
1.) rsync did not "create" 9377 files (maybe, if you count the created tmp files which were delete afterwards, but should be in a different line I think) 2.) rsync did not "transfer" 13628 files (maybe, if this contains retries, but then this should be in a different line I think)
I would also like to ask for an improvement in this respect.
It would have been very nice to have"matched data" computed properly with a "dry-run".
I mounted an external SMB share as a local path and synced this path through rsync with verbose and stats flags as follows:
Then rsync returned this error:
So I checked the verbose output and found a permission problem:
I checked my destination path and yes, the file is missing:
But --stats summary says, that all 24,371 files or 22,745 regular files have been created/transferred:
What I expect: