Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Typically to backup my Windows partitions (note: pre-Vista/2008 Windows, no symlinks), I usaully tar caf /backup/<name><date>.tar.xz /mnt/<fs>. Currently, I use dd | xz to backup Linux partitions in order to preserve links.

What are the reliable ways to backup Linux filesystems that will preserve (sym|hard)links, besides imaging the whole partition?

share|improve this question
1  
How about ... tar? tar already preserves symbolic links as well as hard links. –  scai Sep 17 '13 at 13:03
    
It does? I feel really stupid now... I ran a little test with it when I first started on Linux and was under the impression that it followed hardlinks, duplicating data –  Mark K Cowan Sep 17 '13 at 13:04
    
Yes it does, unless telling it not to do so. Try and see :) –  scai Sep 17 '13 at 13:06
    
fsarchiver is a program that stores everything and file permissions. –  cybernard Sep 18 '13 at 1:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.