1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-11-29 05:46:50 +02:00

Run copying and pruning against multiple storages in parallel (#152)

This commit is contained in:
Frederik Ring
2022-09-01 14:38:04 +02:00
committed by GitHub
parent 695a94d479
commit a6ec128cab
3 changed files with 26 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ package main
import (
"bytes"
"sync"
"time"
)
@@ -32,6 +33,7 @@ type StorageStats struct {
// Stats global stats regarding script execution
type Stats struct {
sync.Mutex
StartTime time.Time
EndTime time.Time
TookTime time.Duration