Commit Graph

12 Commits

Author SHA1 Message Date
0b938f31c8 Fix postgresql drop restore for a single db dump 2025-10-16 16:06:46 +09:00
9f454ac2bf Fix log path override with "." folder name
We add the / before so we do not create ".logfile"
2025-10-16 15:35:44 +09:00
3eb09635f9 Remove default backup dir and do not create backup folder automatically
Fails if the backup folder does not exist or is not writable.
2025-10-15 18:46:02 +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
v1.1.0
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
7d2f75366d Clean up code for pg_db_dump_file
Fixes for wrong empty settings
Fix log path not set correct if given as parameter

Fix all shell linting problems
2025-04-14 15:58:41 +09:00
6adee6abc4 Do only set LOG_PATH if LOG_PATH is not set 2025-04-14 10:59:08 +09:00
fc1f5dcae7 Add shellcheckrc 2024-09-03 12:40:48 +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
e787fb2370 Add Readme file v1.0.0 2021-12-14 06:47:15 +09:00
52ebf9671c Scripts to dump and restore PostgreSQL databases 2021-12-14 06:35:56 +09:00