mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
16 lines
480 B
Go
16 lines
480 B
Go
package apptest
|
|
|
|
import "io"
|
|
|
|
// StartVmbackup starts an instance of vmbackup with the given flags and waits
|
|
// until it exits.
|
|
func StartVmbackup(instance, storageDataPath, snapshotCreateURL, dst string, output io.Writer) error {
|
|
flags := []string{
|
|
"-storageDataPath=" + storageDataPath,
|
|
"-snapshot.createURL=" + snapshotCreateURL,
|
|
"-dst=" + dst,
|
|
}
|
|
_, _, err := startApp(instance, "../../bin/vmbackup-race", flags, &appOptions{wait: true, output: output})
|
|
return err
|
|
}
|