[READ-ONLY] Mirror of https://github.com/flo-bit/atproto-backup. @flo-bit.dev
0

Configure Feed

Select the types of activity you want to include in your feed.

atproto-backup / backup.sh
439 B 17 lines
1#!/usr/bin/env bash 2set -euo pipefail 3 4goat() { 5 go run github.com/bluesky-social/goat@v0.1.2 "$@" 6} 7 8ACCOUNT="${1#@}" 9 10rm -f "$ACCOUNT".car 11goat repo export -o "$ACCOUNT".car "$ACCOUNT" 12goat blob export "$ACCOUNT" 13goat resolve "$ACCOUNT" > "$ACCOUNT".json 14if jq -e '.id | startswith("did:plc:")' "$ACCOUNT".json; then 15 goat plc data "$ACCOUNT" > "$ACCOUNT"_plc.json 16 goat plc history "$ACCOUNT" > "$ACCOUNT"_plc_history.jsonc 17fi