feat: add backup duration
Some checks failed
Build / docker (push) Failing after 12s

This commit is contained in:
2025-01-22 07:22:56 +01:00
parent 3a1bfc512d
commit 3e8bfabc44
10 changed files with 35 additions and 28 deletions

View File

@@ -24,6 +24,8 @@ SOFTWARE.
package pkg
import "time"
const tmpPath = "/tmp/backup"
const gpgHome = "/config/gnupg"
const gpgExtension = "gpg"
@@ -39,7 +41,7 @@ var (
encryption = false
usingKey = false
backupSize int64 = 0
startTime string
startTime = time.Now()
)
// dbHVars Required environment variables for database