mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-05 21:24:44 -06:00
Add a -vss-timeout option to set VSS creation timeout
This commit is contained in:
@@ -689,6 +689,7 @@ func backupRepository(context *cli.Context) {
|
||||
showStatistics := context.Bool("stats")
|
||||
|
||||
enableVSS := context.Bool("vss")
|
||||
vssTimeout := context.Int("vss-timeout")
|
||||
|
||||
dryRun := context.Bool("dry-run")
|
||||
uploadRateLimit := context.Int("limit-rate")
|
||||
@@ -698,7 +699,7 @@ func backupRepository(context *cli.Context) {
|
||||
|
||||
backupManager.SetupSnapshotCache(preference.Name)
|
||||
backupManager.SetDryRun(dryRun)
|
||||
backupManager.Backup(repository, quickMode, threads, context.String("t"), showStatistics, enableVSS)
|
||||
backupManager.Backup(repository, quickMode, threads, context.String("t"), showStatistics, enableVSS, vssTimeout)
|
||||
|
||||
runScript(context, preference.Name, "post")
|
||||
}
|
||||
@@ -1325,6 +1326,12 @@ func main() {
|
||||
Name: "vss",
|
||||
Usage: "enable the Volume Shadow Copy service (Windows only)",
|
||||
},
|
||||
cli.IntFlag{
|
||||
Name: "vss-timeout",
|
||||
Value: 0,
|
||||
Usage: "the timeout in seconds to wait for the Volume Shadow Copy operation to complete",
|
||||
Argument: "<timeout>",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "storage",
|
||||
Usage: "backup to the specified storage instead of the default one",
|
||||
|
||||
Reference in New Issue
Block a user