FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
  1. Aug 30, 2023
  2. Aug 23, 2023
  3. Aug 09, 2023
    • Dr Catherine Pitt's avatar
      Allow setting of global rsync command and rsync args · 46533d5a
      Dr Catherine Pitt authored
      This adds a new config file which allows setting the command to use for
      'rsync' and global options for that command. This is motivated by the
      need to use an alternative rsync command on Jammy machines, as the
      system one is too slow.
      
      The option for global rsync arguments was added as a way to add the
      '--trust-sender' flag to all backups to turn off certain checks that we
      suspect to be the cause of the slowdown, but it didn't help enough to
      fix the speed problem. Instead we are going to use our own package of an
      older rsync from before the checking code was added, which of course
      doesn't support --trust-sender so the global args are left blank.
      46533d5a
  4. Jul 27, 2023
  5. Jul 24, 2023
    • Dr Adam Thorn's avatar
      add option to specify SSHOPTIONS to rsync tasks · 53f5ba49
      Dr Adam Thorn authored
      This could/should probably supercede the specific option for SSHPORT
      as I think usage of that is minimal or perhaps even zero, but we'd
      have to check if that's in use and make suitable updates to config
      files before removing it.
      53f5ba49
  6. May 31, 2023
  7. May 30, 2023
  8. May 03, 2023
  9. Jan 05, 2023
  10. Dec 19, 2022
  11. Oct 31, 2022
  12. Oct 26, 2022
  13. May 25, 2022
  14. May 24, 2022
  15. Apr 25, 2022
  16. Mar 10, 2022
  17. Mar 09, 2022
  18. Dec 20, 2021
  19. Nov 17, 2021
  20. Jul 14, 2021
    • Dr Adam Thorn's avatar
      Prepend reporting lines with the zfs target name · 6e536df5
      Dr Adam Thorn authored
      This will let us use zfs_target as the name of a subtest which
      in turn means we would be able to separately log and graph multiple
      backup targets associated with a single host.
      
      This change does not affect the current parsing performed when
      we input data into postgres: it uses non-anchored regexps to
      identify SpaceUsed etc so prepending extra text won't change
      anything
  21. Jul 09, 2021
    • Dr Adam Thorn's avatar
      Partial fix for behaviour where we see multiple backups for one task running at once · 3941a9df
      Dr Adam Thorn authored
      In some versions of backup_queue (I think just on splot4 now), we use
      backup_log.isrunning as part of the logic to determine if a task should be
      enqueued. The problem is that scheduler.pl makes three writes on the table:
      
      1) an insert when the task is queued (a trigger sets isrunning='t' here)
      2) an update to set started_processing when the task begins (a trigger
         sets isrunning='f' here!!!!)
      3) an update to set ended_processing when the task finishes (a trigger
         again sets isrunning='f' here)
      
      Thus, being careful to only set isrunning='f' when a backup task is finished
      (i.e. when we set ended_processing=now() in scheduler.pl) seems sensible, and
      empirically does seem to lead to the right backup_queue without duplicates.
      
      This commit will only affect new setups of backup servers; the change has been
      deployed to live servers with an ad hoc script I've run.
      
      I think we only see this on splot4 because it has a very different definition of
      the backup_queue view to a) the one defined in this file, b) the one that's on
      all the other backup servers. If I just try to replace the view on splot4, though,
      any attempt to select from it just times out so there may be other relations on
      splot4 that need updating too.
      
      NB the obvious thing missing on splot4 is
      
      WHERE ((backup_log.backup_task_id = a.backup_task_id) AND (backup_log.ended_processing IS NULL))) < 1))
      
      which feels like a hack but nonetheless ensures in practice that we don't get
      duplicate queued tasks.
      3941a9df
  22. Jul 08, 2021
    • Dr Adam Thorn's avatar
      Ensure pg-dump-script includes a dump of roles · 67d141b5
      Dr Adam Thorn authored
      We don't always need the role data, if the presumption is that we'll
      be doing a pg_restore in conjunction with an ansible role which creates
      all required roles. But, having a copy of the role data will never hurt!
      It also gives us a straightforward way of restoring a database to a
      standalone postgres instance without having to have provisioned a
      dedicated VM with the relevant ansible roles.
Loading