I am running a regular rsync between a local folder and a remoter one via ssh. I got confused when I saw that the remote (and target) folder had a different size, it was smaller. I first suspected excluded files, but that wasn't the case. Instead I discovered the following.
The sizes in a local folder (a subfolder of the one I am syncing) look like this:
112K .
48K ./workspace.xml
12K ./vcs.xml
12K ./preferred-vcs.xml
12K ./pm-client.iml
12K ./modules.xml
12K ./misc.xml
the remote ones, however, like this:
64K .
40K ./workspace.xml
4,0K ./vcs.xml
4,0K ./preferred-vcs.xml
4,0K ./pm-client.iml
4,0K ./modules.xml
4,0K ./misc.xml
When I check the file contents, however, they look just the same. I see this a lot in the target folder, which ultimately leads to big differences in folder sizes.
The rsync I am running looks like this:
rsync -aPEh -e ssh --delete --delete-excluded --stats --exclude-from=<some-ignorelist> /source/folder/ /target/backup/folder
What can be the reason for this?