Release URBM 2026.06.15.r013

This commit is contained in:
Mikei386
2026-06-15 07:49:40 +02:00
parent 1c8d2202d4
commit e97dde0ed8
8 changed files with 31 additions and 12 deletions
+8 -4
View File
@@ -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)
})