Skip to content

Commit 14811c7

Browse files
authored
Feature: Allow subsets of files in src snapshot upload (#1188)
Customer admins can now use a `--file=` arg to the `src snapshot upload` command, to prevent unnecessary duplication of uploads in cases when a database file needs to be re-uploaded, but other large database files have already been uploaded.
1 parent c146be3 commit 14811c7

File tree

3 files changed

+595
-125
lines changed

3 files changed

+595
-125
lines changed

cmd/src/snapshot.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,23 @@ import (
88
var snapshotCommands commander
99

1010
func init() {
11-
usage := `'src snapshot' manages snapshots of Sourcegraph instance data. All subcommands are currently EXPERIMENTAL.
11+
usage := `'src snapshot' manages snapshots of Sourcegraph instance databases. All subcommands are currently EXPERIMENTAL.
1212
13-
USAGE
14-
src [-v] snapshot <command>
13+
Usage:
1514
16-
COMMANDS
15+
src snapshot <command>
16+
17+
The commands are:
18+
19+
databases export databases from a Sourcegraph instance
20+
restore restore databases from an export
21+
upload upload exported databases and summary file when migrating to Sourcegraph Cloud
1722
1823
summary export summary data about an instance for acceptance testing of a restored Sourcegraph instance
1924
test use exported summary data and instance health indicators to validate a restored and upgraded instance
25+
26+
Use "src snapshot [command] -h" for more information about a command.
27+
2028
`
2129
flagSet := flag.NewFlagSet("snapshot", flag.ExitOnError)
2230

0 commit comments

Comments
 (0)