Whenever I wipe my PC, I use tar to make an archive of the whole system. This works, but having to decompress the whole archive to pull files out is very annoying. Is there another archive format that:

  • Preserves permissions (i.e., is Unix-y)
  • Supports strong compression (I use either zstd or xz depending on how long I can be bothered to wait)
  • Supports pulling out individual files quickly
  • Fryboyter@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    Maybe Borg is a possibility. However, I have not yet backed up an entire system with it, but only certain files.

    • The file permissions have always been correct when restoring files in my case.
    • Which compression (LZ4, zlib, LZMA or zstd) and which compression level is used can be specified when creating a backup.
    • Backups can be mounted via FUSE, so that you can restore individual files with an file manager or a terminal emulator, for example.
  • TheFrenchGhosty@lemmy.pussthecat.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    You don’t need to extract the whole thing if you use tar. The reason you have to here is because you use zstd/xz on top of it.

    Use tar as is. It’s what it’s made for.

  • brechmos
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    At least on the Mac (bsdtar) you can extract single files out of a tar file.

    E.g.,

    Create the tar file:

    tar cvzf pseudo.tgz pseudo/

    Move to another directory

    cd /tmp/tt

    Extract a single file:

    tar -xf ../pseudo.tgz pseudo/10481_2017.1069.png

    You say PC, so might want to check the tar version you are using and see if there are extra parameters to do the file extraction.

    • BermudaHighball@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      You can pull a single file as you mention, but your computer still has to decompress everything inside the tar file up until the file you want to extract, which can take a very long time for medium to large archives.

  • what@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Take a look at squashfs. This creates a compressed archive that can be mounted as a read-only filesystem to pull out individual files. It is very fast and likely already installed on your system.

  • bolapara@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Borg or restic since they do deduplication.

    My biggest data regret is rsync-ing or tar-ing up my systems to my fileserver as a backup mechanism. So much wasted space. Extremely difficult to find anything. Impossible to properly organize. These backup solutions improve the situation tremendously.

  • calm.like.a.bomb@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    When I wipe my PC I always use Clonezilla. I have a separate /home partition and I usually copy /etc inside my user’s home directory just before the cloning. I’d say you should give it a try.

  • dlarge6510@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Dar

    Tar = Tape ARchive

    DAR = Disk Archive

    It is supposed to replace tar when storing on random access media as tar isn’t random access. Compression and encryption options.