Overtime, it seems that syncing the filesystem leaves more data on the destination than the source. This filesystem has been synced about once a month over the past year.
Code:
# df -BG | grep -E "Filesystem|mapper"
Filesystem 1G-blocks Used Available Use% Mounted on
/dev/mapper/user-data 5545G 5480G 66G 99% /home/replica/user-data
/dev/mapper/backup 5545G 5527G 19G 100% /mnt/backup
The difference in size between the filesystems is less than 100MB. The source has 66GB free, yet rsync is failing due to lack of space on the destination.
Code:
rsync: write failed on "/mnt/backup/Media/.........": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(393) [receiver=3.1.1]
This is the rsync command I am using.
Code:
rsync -Phavx --delete /home/replica/user-data/ /mnt/backup/
I had the same thing happen with the same filesystem to a secondary backup of similar size. After a
rm -rf of the secondary backup, a fresh sync completed without error.
So my question is: does rsync not always remove old data with the --delete option?