I’m using rsync to back up my home directory:
time rsync -iia --append-verify --progress --exclude cloudDrive/ /home /usr/local/share/applications /etc/yum.repos.d /home/user/cloudDrive/Backups/"2024-09-27T00:06:05+02:00" 1> /tmp/out.log 2>/tmp/err.log
I had to suspend it because it was taken too long:
real 1305m43.016s
user 0m1.691s
sys 0m5.394s
du
shows that home in the source is 64 G while home in the backup is 23 G. However this is expected because I cancelled the backup so it didn’t finish.
Closer inspection shows that for the same directory there’s a big discrepancy in the backup and the source:
du -h --max-depth=1 $HOME/.android/avd
5.1G .android/avd/Medium_Phone_API_35.avd
5.7G .android/avd/Pixel_Fold_API_VanillaIceCream.avd
3.6G .android/avd/Pixel_8_Pro_API_32.avd
15G .android/avd
$ du -h --max-depth=1 $HOME/cloudDrive/Backups/2024-09-27T00:06:05+02:00/home/user/.android/avd/ 2> /tmp/throwaway2.txt
5.6G /home/user/cloudDrive/Backups/2024-09-27T00:06:05+02:00/home/user/.android/avd/Medium_Phone_API_35.avd
5.9G /home/user/cloudDrive/Backups/2024-09-27T00:06:05+02:00/home/user/.android/avd/Pixel_Fold_API_VanillaIceCream.avd
9.6G /home/user/cloudDrive/Backups/2024-09-27T00:06:05+02:00/home/user/.android/avd/Pixel_8_Pro_API_32.avd
21G /home/user/cloudDrive/Backups/2024-09-27T00:06:05+02:00/home/user/.android/avd/
Why is the rsync backup 6 GB more than the original directory?