If you want to move data between providers (e.g., from your disk to AWS or GCS), do the following:
Set AUDIUS_STORAGE_DRIVER_URL_MOVE_FROM (in audius-docker-compose/creator-node/override.env) to your current provider (most likely local disk - "file:///tmp/mediorum/blobs").
Set AUDIUS_STORAGE_DRIVER_URL to the new provider (see below for configuration and to make sure you have the right credentials).
Start the server and monitor logs for errors. Once you see the message "Finished moving files between buckets" and the health check responds again, then the migration is complete. NOTE: this may take hours to complete.
Remove the AUDIUS_STORAGE_DRIVER_URL_MOVE_FROM env var and restart the server. You're good to go!
Configuring GCS Backend
Createa new Service Account and JSON key for it. scp the key onto your server and mv the key to /var/k8s/mediorum/google-application-credentials.json.
Create a GCS bucket:
Non-public access (enforce public access prevention)
Uniform access control
No protection tools
In the bucket permissions, grant access for Storage Legacy Bucket Owner and Storage Legacy Object Owner for the Service Account (set the principal to the Service Account’s email).
Set these env vars in audius-docker-compose/creator-node/override.env: