Skip to content

Platforms ​

One binary. Same commands. Different hosts, different tool reality.

Matrix ​

HostStatusWhat to expect
GNU Linux desktopHappy pathEverything works as documented
VPS / server (Debian, Ubuntu, Fedora, Arch, …)Happy pathSame; watch disk space for staging + archive
WSLHappy pathDefault archive may land in Windows Downloads when a mount resolves; Linux-native tools still required
Alpine / BusyBoxBest-efforttar may be BusyBox — flag fallbacks; install zstd; sha may be shasum/openssl
iSH (iOS)Best-effortMinimal rootfs; run deps first; job-control (Ctrl+Z) can be flaky
TermuxBest-effortNon-FHS prefix; pkg bootstrap; no hardcoded /usr/bin assumptions
FAT / exFAT / NTFS / 9p mounts as destSupported via metadata modersync will not hard-fail on chmod/symlink; modes may not round-trip

Run this on any host before the first backup:

bash
./linuxbkup deps status
./linuxbkup deps install

deps detects the package family and can print/run a one-command bootstrap.

Package managers ​

FamilyDetectionBootstrap shape
Termux pkgTERMUX_VERSION + pkgpkg install -y <pkgs>
Alpine apkapk without aptsudo apk add <pkgs>
Debian/Ubuntu aptapt / apt-getsudo apt update && sudo apt install -y <pkgs>
Arch pacmanpacmansudo pacman -S --needed <pkgs>
Fedora dnf / yumdnf / yumsudo dnf install -y <pkgs>
Homebrewbrewbrew install <pkgs>

-y / non-TTY: bootstrap runs without an extra prompt (still only the tools you asked for). TTY: confirm first.

Tool compatibility ​

ToolRequirementFallback
tarRequiredProbed: GNU / BusyBox / BSD. GNU --warning omitted when unsupported
zstdRequiredInstall via deps / distro package
rsyncRequiredMetadata mode on non-Linux filesystems
sha256sumRequired as a capabilityshasum -a 256 or openssl dgst
du, findRequired—
ageOptionalSecrets subset only
numfmtOptionalPure-bash human sizes
fzfOptionalNon-interactive fallback always exists

WSL notes ​

  • Install Linux tools inside the Linux distro (sudo apt install tar zstd rsync coreutils), not via Windows interop shims.
  • linuxbkup ignores Windows/interop binaries (/mnt/c/..., *.exe) when resolving tools and PMs.
  • Default destination preference: Windows Downloads when a mount looks available, else ~/Backups/linuxbkup/.

External / non-Linux mounts ​

If the staging parent or restore destination is FAT/exFAT/NTFS/9p-style:

  • Backup staging still works on the Linux side when possible.
  • Restore rsync switches to metadata mode: recursive + times, no chmod/symlink hard-fail. A log line tells you metadata mode is on.
  • Symlinks and exact modes may not survive — expected on those filesystems.

Prefer staging under ${TMPDIR:-/tmp} or a native ext4/btrfs path, and only write the final archive to the external mount.

Soak checklist ​

Hardware-specific validation (pack/extract/verify, Ctrl+Z resume, metadata-mode restore, deps bootstrap) is recorded during host soak runs. Until a host is soaked, treat iSH/Termux/Alpine results as best-effort and run linuxbkup deps first.

Next: CLI · Troubleshooting

Bash-first Linux backup — no Node runtime in the CLI.