Summary
I have copied (rsync --archive) a folder from an ext4 filesystem to a zfs file system with compression on. Now, I'm trying to verify that both folders are identical so that I can safely delete the source folder.
When re-running rsync, no additional bytes are transferred. So, rsync is convinced that both folders are identical.
However, using du, du -b, or md5sum yield different results for both folders.
How can I convince myself that both folders are identical before deleting the source folder?
Examples
I've uploaded a test folder 883 containing four files.
fiedl@ext4 ▶ du 883
20 883
fiedl@zfs ▶ du 883
57 883
fiedl@ext4 ▶ du -s 883
20 883
fiedl@zfs ▶ du -s 883
57 883
fiedl@ext4 ▶ du -sb 883
4660 883
fiedl@zfs ▶ du -sb 883
570 883
fiedl@ext4 ▶ du 883/*
4 883/big_image001.gif
4 883/image001.gif
4 883/medium_image001.gif
4 883/thumb.png
fiedl@zfs ▶ du 883/*
10 883/big_image001.gif
10 883/image001.gif
10 883/medium_image001.gif
10 883/thumb.png
fiedl@ext4 ▶ tar -cf - 883 | md5sum
7c8a4ff31fdf594b04173789b23c7bb8 -
fiedl@zfs ▶ tar -cf - 883 | md5sum
f207dbadd75126665af300705774c97f -
find,md5sum,sort, anddiff. Should I post this as an answer or should I wait for someone posting a proper way to do it?