3
0
mirror of https://kolaente.dev/konrad/docker-db-backup.git synced 2026-01-10 02:50:08 +01:00

Add postgres dumper

This commit is contained in:
kolaente
2021-08-18 21:50:04 +02:00
parent 7a24e57e09
commit e85384d0da
3 changed files with 37 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ func init() {
func updateFullBackupPath() {
dumpTime = time.Now()
config.fullCurrentBackupPath = config.Folder + dumpTime.Format("02-01-2006_15-04-05") + "/"
err := os.MkdirAll(config.fullCurrentBackupPath, 0644)
err := os.MkdirAll(config.fullCurrentBackupPath, 0744)
if err != nil {
log.Fatalf("Could not create backup folder: %s\n", err)
}