- May 24, 2024
-
-
Dr Catherine Pitt authored
Closes #6 When running psql commands to insert rows in the database, psql normally returns an message about what it did, eg "INSERT 0 1" if it inserted a row. This can be suppressed with -q . Several of the scripts use psql commands to get primary keys from the database, inserting the row if necessary. This can lead to the host id variable in the script being set to 'INSERT 0 1 <thehostid>' which causes problems when this variable is used in other SQL commands. This always used to work; I suspect the thing that changed is our upgrading to Postgres 16 on the backup servers, but I'm struggling to see how as Postgres 13 seems to behave the same for me.
-
- Aug 30, 2023
-
-
Dr Adam Thorn authored
1. The export is done via set sharenfs which means we shouldn't need to manually manage exports 2. This part of the script does not work because it tries to unexport the old export but by looking up the db record that we have already updated to refer to the new zpool.
-
- Mar 09, 2022
-
-
Dr Adam Thorn authored
I'm about to add a script to send a backup to a different backup server. It's thus probably best if the script names describe their functions in a little more detail
-
- Dec 20, 2021
-
- May 12, 2021
-
-
Dr Catherine Pitt authored
The generation of the command to unexport NFS filesystems could generate an invalid command. Leading spaces were not being stripped, and in cases where there is more than one backup target for a machine we need to unexport every target. Because we also had 'set -e' in operation at this point, the script would fail there and never clean up the moved ZFS. I don't mind if we fail to unexport; if that's subsequently a problem for removing the ZFS then the script will fail at that point. This change makes the script generate better exportfs -u commands and not exit if they fail.
-
- Dec 15, 2015
-
-
Dr Adam Thorn authored
-
- Jul 02, 2015
-
-
Dr. Frank Lee authored
-