FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
  1. Oct 23, 2024
  2. Jul 10, 2024
  3. 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.
      1.0.2
      59d01a57
  4. Sep 01, 2023
    • Dr Catherine Pitt's avatar
      send-backup-to-server.sh copies additional config · 0f5bbdc6
      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.
      0f5bbdc6
  5. Mar 09, 2022
    • Dr Adam Thorn's avatar
    • Dr Adam Thorn's avatar
      Add script to move a backup to another server · 3d245d54
      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.
      3d245d54
Loading