Disk usage after rsync from sme9 to ns7

NethServer Version: 7.4

I try to sync data from SME 9.2 to NethServer 7.4 with rsync:

rsync -avzr --delete -e "ssh -p 1234" /home/e-smith/files/ibays/ael/files/ root@192.168.nnn.245:/var/lib/nethserver/ibay/ael/
|
|
|
But I get different diskusageā€¦

du /home/e-smith/files/ibays/ael/files/ -hs --block-size=1M:
1266760 /home/e-smith/files/ibays/ael/files/

du /var/lib/nethserver/ibay/ael/ -hs --block-size=1M:
1378291 /var/lib/nethserver/ibay/ael/

? :thinking: ?

Maybe the difference depends on the different filesystem options/types, i.e. ext4 and xfs. The output of mount can confirm it.

The du -b option could be interesting, refer to du manpage.

1 Like

There is still a difference of 312MB, I will do an additional investigation. Thank youā€¦

# du -b /home/e-smith/files/ibays/ael/files/ -hs --block-size=1M:
1377070 /home/e-smith/files/ibays/ael/files/

# du -b /var/lib/nethserver/ibay/ael -hs --block-size=1M:
1376758 /var/lib/nethserver/ibay/ael

Another problem is the permission on the target. How can I change it to lets say the domainadmin or an existing user:group in one step with rsync ?