Skip to content

Commit

Permalink
use formated inc dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
PATROMO committed May 10, 2023
1 parent 6cf8c3e commit 7863f5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"os"
"os/exec"
"path/filepath"
"strconv"
"time"
)

Expand Down Expand Up @@ -120,8 +119,8 @@ func main() {
if incCount == 0 {
incrementalBasedir = backupDirBase
} else {
incrementalBasedir = filepath.Join(backupDirInc, strconv.Itoa(incCount))
incrementalBasedir = filepath.Join(backupDirInc, fmt.Sprintf("%02d", incCount))
}

xtrabackup(filepath.Join(backupDirInc, strconv.Itoa(incCount+1)), incrementalBasedir)
xtrabackup(filepath.Join(backupDirInc, fmt.Sprintf("%02d", incCount+1)), incrementalBasedir)
}

0 comments on commit 7863f5d

Please sign in to comment.