FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
  1. May 24, 2024
    • Dr Catherine Pitt's avatar
      Add -q flag to psql calls to suppress 'INSERT 0 1' etc · 59d01a57
      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.
  2. Sep 08, 2023
    • Dr Catherine Pitt's avatar
      Add script for moving a backup task rather than a host · 43774528
      Dr Catherine Pitt authored
      For machines like nest-backup and cerebro-backup we have lots of backup
      tasks for the same host spread across several zpools, so
      move-machine-to-zpool.sh can't be used to migrate the contents of a
      failing zpool/disk. This adds a script to move an individual ZFS which is
      the target of a backup task to another zpool.
      
      It assumes all necessary parent ZFSes already exist on the target. If
      they don't it fails.
      
      It does not yet clean up the old ZFS as it's not had a lot of use.
      43774528
Loading