Tar incremental backup causes segmentation fault
Environment
- Red Hat Enterprise Linux 6.2
Issue
- Creating incremental backup using tar fails with Segmentation fault
# mkdir test
# cd test
# tar -czf test1.tar -g snap.log --one-file-system /
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
# tar -czf test2.tar -g snap.log --one-file-system /
Segmentation fault (core dumped)
Resolution
Update tar to version tar-1.23-7.el6.x86_64.rpm (available in RHEL 6.3 Beta)
Workaround
Instead of using / as the only parameter use list of directories in / as tar parameters
# tar -czf test1.tar -g snap.log --one-file-system /*
# tar -czf test2.tar -g snap.log --one-file-system /*
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
