postgres-archive/sync-b2.sh

9 lines
210 B
Bash
Raw Permalink Normal View History

2024-12-19 07:16:41 +01:00
#!/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