Open okay-scam opened 1 year ago
Can you test by changing this line?
- DB_VER=$(psql "${DB_OPTS_BATCH[@]}" -c "select optional from dbversion;" 2>/dev/null)
+ DB_VER=$(psql "${DB_OPTS_BATCH[@]}" -c "select optional from dbversion limit 1;" 2>/dev/null)
Having had the same issue i can confirm that changing the line as you described does indeed fix the issue.
zabbix-dump is saving my filename with new lines which renders it unusable until I rename it
Printing ${VERSION} returns
zabbix_cfg_localhost_20221122-1403_db-psql-5050006 5050006 5050006 5050006 5050006 5050006 5050006 5050006 5050006 5.5.6.sql
My best guess is this is the culprit. I'm not that well versed in databases and I'm actually trying to dump from an upgrade that has a database which is missing primary keys, so this may just be an anomaly of my busted DB.