1
0

2 Ревизии d74caac307 ... 28d2956c3b

Автор SHA1 Съобщение Дата
  Sebastian Vendt 28d2956c3b Merge branch 'master' of https://git.sebastianvendt.de/sebastian/backup преди 3 месеца
  Sebastian Vendt 142b2821c2 Fixing type in deleting files преди 3 месеца
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      postgresqlBackup/backup_postgresql.sh

+ 1 - 1
postgresqlBackup/backup_postgresql → postgresqlBackup/backup_postgresql.sh

@@ -8,7 +8,7 @@ filename="${today}_${dbName}_Backup.sql"
 fullBackupFileName="${backupFilepath}${filename}"
 
 #Backup Job
-docker exec -i ${dockerContainername} /bin/bash -c "PGPASSWORD=${dbpasswd} pg_dump --username ${dbUser} ${dbName}" > $fullBackupFileName
+docker exec -i ${dockerContainerName} /bin/bash -c "PGPASSWORD=${dbpasswd} pg_dump --username ${dbUser} ${dbName}" > $fullBackupFileName
 
 #Backup rotation - Delete everything older than rotationDays
 find $backupFilePath -type f -mtime +$rotationDays -name '*.sql' -execdir rm -- '{}' \;