#!/usr/bin/env nix-shell #! nix-shell -i bash --pure #! nix-shell -p gnutar xz #! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-25.11 set -e WORLD=/home/h3lp/mineserver/world OUTPUT=/var/www/hostedfiles/world.tar.xz TMP=$(mktemp) tar -cJf "$TMP" -C "$WORLD" . mv "$TMP" "$OUTPUT" echo "Done: $OUTPUT"