···5454is saved to `~/.attic/config.json` and credentials are stored in the macOS
5555Keychain.
56565757-Build the ladder binary (see [ladder](https://github.com/tijs/ladder) for
5858-details):
5757+Build the ladder binary and add it to your PATH (see
5858+[ladder](https://github.com/tijs/ladder) for details):
59596060```bash
6161git clone https://github.com/tijs/ladder.git
6262cd ladder
6363swift build -c release
6464+sudo cp .build/release/ladder /usr/local/bin/
6465```
6666+6767+Alternatively, pass `--ladder <path>` to the backup command or set the
6868+`LADDER_PATH` environment variable.
65696670## Commands
6771···102106| Flag | Description |
103107| --------------------- | -------------------------------------------------------- |
104108| `--dry-run` | Show what would be uploaded without uploading |
105105-| `--limit N` | Back up at most N assets |
106106-| `--batch-size N` | Assets per ladder export batch (default: 50) |
109109+| `--limit N` | Stop after N assets (useful for test runs) |
110110+| `--batch-size N` | Assets per export batch (default: 50) |
107111| `--type photo\|video` | Only back up photos or videos |
108112| `--bucket NAME` | Override bucket from config |
109113| `--ladder PATH` | Path to the ladder binary (or set `LADDER_PATH` env var) |
attic-logo-transparent.png
This is a binary file and will not be displayed.
+2-2
cli/mod.ts
···54545555main.command("backup", "Back up pending assets to S3")
5656 .option("--dry-run", "Show what would be uploaded")
5757- .option("--limit <n:integer>", "Back up at most N assets")
5858- .option("--batch-size <n:integer>", "Assets per ladder batch", {
5757+ .option("--limit <n:integer>", "Stop after N assets (useful for test runs)")
5858+ .option("--batch-size <n:integer>", "Assets per export batch", {
5959 default: 50,
6060 })
6161 .type("asset-type", assetType)