Release URBM 2026.06.15.r013
This commit is contained in:
@@ -375,11 +375,15 @@ func (s *Service) executeBackup(ctx context.Context, run model.Run) (result mode
|
||||
}
|
||||
appendLiveLog(&live, "USB-Rohabbild wird direkt aus "+device+" zu Restic übertragen")
|
||||
s.updateActive(live)
|
||||
imageStarted := time.Now()
|
||||
imageSummary, err = s.restic.BackupImage(ctx, mounted.Repository, job, image, func(progress restic.Progress) {
|
||||
live.ProgressPercent = progress.PercentDone * 100
|
||||
live.ProgressBytes, live.ProgressTotal = progress.BytesDone, progress.TotalBytes
|
||||
live.ProgressFiles, live.ProgressFileTotal = progress.FilesDone, progress.TotalFiles
|
||||
live.SecondsRemaining = progress.SecondsRemaining
|
||||
live.ProgressPercent = 0
|
||||
live.ProgressBytes, live.ProgressTotal = progress.BytesDone, 0
|
||||
live.ProgressFiles, live.ProgressFileTotal = 0, 0
|
||||
live.SecondsRemaining = 0
|
||||
if elapsed := time.Since(imageStarted).Seconds(); elapsed > 0 {
|
||||
live.BytesPerSecond = float64(progress.BytesDone) / elapsed
|
||||
}
|
||||
live.CurrentFile = "urbm-usb-flash.img"
|
||||
s.updateActive(live)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user