Tar backup of a filesystem is much larger than the original due to sparse files in Red Hat Enterprise Linux.
Issue
-
Creating a tarball of data over the network, created files which were higher in size than the source.
-
Backup of a filesystem was done over the network using tar and netcat. This was for a physical machine to virtual migration. The application filesystem was sized exactly the same on both, however, the data copied to the VM was much larger than the original.
-
The command used was as following :
# cd /; tar -cpf - `ls -a | egrep -v "^\.\$|^\.\.\$|proc|sys|lost\+found" ` | nc 192.168.5.40 9100
Environment
- Red Hat Enterprise Linux (RHEL) 4
- Red Hat Enterprise Linux (RHEL) 5
- Red Hat Enterprise Linux (RHEL) 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
