Commit Graph

7 Commits

Author SHA1 Message Date
b979cdd51f Update with commands in array for calls, logging for single file restore
All commands are now run through a single array variable
All logs are in logs folder for the restore which is a sub folder to where the SQL file is located
On restore abort if the basic database creation failed or skip to the next database in block restore
2025-10-17 10:39:55 +09:00
0b938f31c8 Fix postgresql drop restore for a single db dump 2025-10-16 16:06:46 +09:00
bb5c65818b Some more clean up for code
Fix ident get from file, they where subtly not correct
- wrong lookup for <10 postgresql version
- if version has a . inside the host/port lookups have to shift
- dry run notice for restore runs
2025-04-15 09:42:39 +09:00
01b434fca0 Postgresql version check calls update formatting 2025-04-15 08:44:00 +09:00
806247996d Clean up all scripts to match bash linting rules
pg_db_dump_file log parameter never set the log folder, it was always overwritten

pg_drop_restore had a double ;; inside which stopped the script from working

All: remove -a flag for Amazon Linux OS. This was only for V1 type and we do no longer support this (or use it) and V2 AWS Linux is based more on a redhat type, so the -r flag will work

Various other formatting updates

Change all strange ls to find calls

Change all exec calls with params to params in array
2025-04-15 08:40:21 +09:00
fb092feabc Fix for "local" socket host name
if -h local is set, be sure to never set -h flag so we use the socket
and not host connection.

Needed for trust with socket flow (sudo -u)
2022-01-17 15:12:12 +09:00
52ebf9671c Scripts to dump and restore PostgreSQL databases 2021-12-14 06:35:56 +09:00