- Oct 23, 2024
-
-
Dr Catherine Pitt authored
-
- Jul 10, 2024
-
-
Owen Johnson authored
-
- 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.
-
- Sep 01, 2023
-
-
Dr Catherine Pitt authored
We have started putting extra configuration for sshing to a host in a file in the /etc/chem-zfs-backup-server/zfs-rsync.d/$HOSTNAME directory. This updates the backup migration script to copy that as well as the main config file for the machine. I've chosen to copy the entire directory to catch other files we might want to add in future. There is often an 'exclude' file in there that's autogenerated by the prepare scripts, but copying that won't do any damage; it's just redundant because it will be regenerated when the backup runs.
-
- Mar 09, 2022
-
-
Dr Adam Thorn authored
-
Dr Adam Thorn authored
i.e. send the ZFS, update db records and copy the config files. The sql inserts should broadly mirror those done when setting up a new backup, though with field values matching those in the source database rather than just using the defaults. This script has so only been tested for the case of moving a "simple" backup where a host has a single backup task and no special config. It's quite likely there'll be bugs to fix for other cases that we'll find in due course.
-