Преглед изворни кода

Fixing type in deleting files

Sebastian Vendt пре 3 месеци
родитељ
комит
142b2821c2
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 -- '{}' \;