'src snapshot upload' uploads the files generated by 'src snapshot databases' and 'src snapshot summary' to the specified GCS bucket, for self-hosted Sourcegraph customers migrating to Sourcegraph Cloud.
Usage:
src snapshot upload -bucket=$MIGRATION_BUCKET_NAME -credentials=$CREDENTIALS_FILE_PATH [-file]
Examples:
src snapshot upload -bucket=example-bucket-name -credentials=path/to/migration_private_key.json
src snapshot upload -bucket=example-bucket-name -credentials=./migration_private_key.json -file=pgsql.sql
src snapshot upload -bucket=example-bucket-name -credentials=./migration_private_key.json -file="codeinsights.sql, codeintel.sql, pgsql.sql"
Args:
-bucket
Name of the Google Cloud Storage bucket provided by Sourcegraph
Required
Type: string
-credentials
File path to the credentials file provided by Sourcegraph
Required
Type: file path, as string
-file
Specify which files from the ./src-snapshot directory to upload
Optional
Type: comma-delimited list of file names, with file-type extensions, as a string
Valid values: codeinsights.sql, codeintel.sql, pgsql.sql, summary.json
Default: All valid values