brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

tips

~/tips/tar
All tips

2 tips Tar

One command, setting or habit at a time about Tar: what it does, the line to copy and a caveat or two.

Files and media 2

  • Leaves cache folders out of a tar backup by marking them with one small file.

    printf 'Signature: 8a477f597d28d172789f06886806bc55' > /mnt/user/appdata/app/cache/CACHEDIR.TAG
  • Unpacks an archive straight into an existing folder without the extra version folder.

    tar -xzf app-2.4.1.tar.gz -C /mnt/user/appdata/app --strip-components=1