TIL: GNU tar ignores --exclude patterns with a trailing slash
GNU tar skips an --exclude pattern that ends in a slash and packs the directory anyway. Drop the slash. macOS bsdtar does match it, so test where the backup runs.
GNU tar skips an --exclude pattern that ends in a slash and packs the directory anyway. Drop the slash. macOS bsdtar does match it, so test where the backup runs.
pagedrop-cli posts an HTML file to pagedrop.io and prints the share URL. How the script works, what it handles, and the silent failures I fixed.
A failed git push piped into tail still exited 0, and the script moved on. set -o pipefail makes the pipeline report the failure.