mirror of
https://github.com/kopia/kopia.git
synced 2026-01-25 14:58:00 -05:00
20 lines
431 B
Go
20 lines
431 B
Go
package cli
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/internal/serverapi"
|
|
)
|
|
|
|
var (
|
|
serverResumeCommand = serverCommands.Command("resume", "Resume the scheduled snapshots for one or more sources")
|
|
)
|
|
|
|
func init() {
|
|
serverResumeCommand.Action(serverAction(runServerResume))
|
|
}
|
|
|
|
func runServerResume(ctx context.Context, cli *serverapi.Client) error {
|
|
return cli.Post("sources/resume", &serverapi.Empty{}, &serverapi.Empty{})
|
|
}
|