src snapshot upload

Flags

NameDescriptionDefault Value
-bucketName of the Google Cloud Storage bucket provided by Sourcegraph
-credentialsFile path to the credentials file provided by Sourcegraph
-fileSpecify which files from the ./src-snapshot directory to uploadcodeinsights.sql,codeintel.sql,pgsql.sql,summary.json
-filter-sqlFilter incompatible SQL statements from database snapshots which break the import into Google Cloud SQLtrue

Usage

SHELL
'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