I have a 1TB xfs volumne on Amazon EBS, which contains 246GB of incremental backups, created with rsync and hardlinking. I want to copy this to a new, smaller disk.
The problem is it doesn't seem to fit into a 300GB disk. Is there any block size that I can investigate or something? I have recently removed 700GB of backups, do I need to clear something off? I'm using cp -R to copy between the mounted volumes
Using cp -R to copy your hardlinked data is removing the hardlinks.
At this point ls shows two 140MB files, but they are hard linked, so du reports just 140MB in use.
This shows that cp -R doesn't preserve the hardlink status.
The (or at least, one) right way to copy this is to use rsync again, with the -H (or --hard-links) parameter.