postgres-archive/sync-b2.sh
2024-12-19 00:16:41 -06:00

8 lines
210 B
Bash
Executable file

#!/usr/bin/env sh
ARCHIVE_DIR=${ARCHIVE_DIR:-"$1"}
ARCHIVE_DIR=${ARCHIVE_DIR:-"/archive"}
b2v4 sync --skip-newer --exclude-regex '.*' --include-regex '.*\.tar\.xz' "$ARCHIVE_DIR" "b2://${BUCKET}" --dry-run