Skip to content

Configuration Cloud Storage

Ashley Davis edited this page Feb 25, 2026 · 5 revisions

Cloud Storage (S3) — Setup and Configuration

Photosphere supports S3-compatible storage for both local and cloud deployments. You can use AWS S3, DigitalOcean Spaces, MinIO, or any S3-compatible service.

For detailed instructions on setting up Digital Ocean Spaces, see Configuration-Digital-Ocean-Spaces.

Configuring S3 Credentials

Use the config command to set up your AWS credentials and set your Google API key for reverse geocoding:

# Configure credentials
psi config

You can also set AWS credentials using environment variables:

export AWS_ACCESS_KEY_ID=<your-access-key-id>
export AWS_SECRET_ACCESS_KEY=<your-secret-key>
export AWS_DEFAULT_REGION=us-east-1 # Set this to us-east-1 for Digital Ocean.
export AWS_ENDPOINT=https://syd1.digitaloceanspaces.com # If using Digital Ocean, replace with the endpoint for your DO data center.

Using S3 Storage

Once configured, you can use S3 paths directly in commands:

# Replicate a local database to S3
psi replicate --db my-photos --dest s3:my-bucket/photos

# Initialize an empty database in S3
psi init --db s3:my-bucket/photos

# Add files to S3-backed database
psi add --db s3:my-bucket/photos ~/Pictures/*.jpg

Clearing Configuration

To remove all configuration files:

psi config --clear

This will prompt for confirmation before deleting all credential files.

Clone this wiki locally