Skip to content

Commit

Permalink
Add docker run example
Browse files Browse the repository at this point in the history
  • Loading branch information
antares-sw committed Jan 10, 2025
1 parent 02a8de5 commit 019e5cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ python recovery.py --config path_to_your_config.toml
2. **Run Backup**: Run the backup script to create tarballs of the Docker container data and upload them to Google Cloud Storage.
3. **Recovery**: Run the recovery script to download and extract the snapshot tarballs into the desired recovery directories.

## Example Docker run

```
docker run --rm -ti \
-v /root/node-snapshots:/config \
-v /data/mainnet:/data \
-v /var/run/docker.sock:/var/run/docker.sock \
europe-west4-docker.pkg.dev/stakewiselabs/public/node-snapshots:v0.0.2 \
snapshot.py -c /config/config.toml
```

## Troubleshooting

- **Google Cloud Authentication**: Make sure the `google-credentials.json` file points to a valid Google Cloud service account with the necessary permissions to access your GCS bucket.
Expand Down

0 comments on commit 019e5cc

Please sign in to comment.