I need to backup / copy the files of my Linux installation to an external drive, so that I can restore them onto the new, larger disk.
The destination disk for the restoration is twice as large, and will have larger partitions,
linux-swap. Imaging the entire disk or its first partition is not really a good option, because both require later re-partitioning I'd like to avoid.
I am backing up to an exFAT-formatted drive, there are some issues with copying an ext4 Linux installation to exFAT though
may destroy important hard links and fast* symbolic links from the
ext4file system (will break Linux)
won't preserve file ownership / permissions and
setuidbits (will break Linux)
won't preserve capabilities (will break Linux)
won't preserve files extended attributes (xattrs) as well, as I believe many files have important information there (I don't care about Unix ACLs as I don't think I have any files using them)
If I copied the files directly to NTFS, FAT32, exFAT, etc, much of this metadata would be destroyed.
I don't care about compression since the original disk is smaller than my backup drive, but (GNU)
tar seems to preserve only permissions/ownership (with
-p and extract with
--same-owner), links and xattrs, but file capability support is needed to backup modern Linux.
It seems the other main options are a CloneZilla Live system, and
cpio which seems to create
So the main options are
- CloneZilla or just imaging the parition
taritself, which may break things
cpio, which may be limited by the
*80,000 of the 83,000 symlinks are fast symlinks, and I'd like to preserve their fast-ness if possible