chem-zfs-backup-server (1.0.2) focal jammy noble; urgency=medium * Add -q to psql calls -- Catherine Pitt <cen1001@cam.ac.uk> Fri, 24 May 2024 10:25:02 +0100 chem-zfs-backup-server (1.0.1) focal jammy; urgency=low * Add pre-pg-dump script to call scripts on client -- Frank Lee <rl201@cam.ac.uk> Tue, 07 May 2024 16:42:00 +0100 chem-zfs-backup-server (1.0.0) focal jammy; urgency=low * Add zfs-rsync-prep.sh script * Package for new GIT CI -- Frank Lee <rl201@cam.ac.uk> Wed, 01 May 2024 13:28:41 +0100 chem-zfs-backup-server (0.9-ch113) focal; urgency=low * add unique hostname constraint to host table -- Adam Thorn <alt36@cam.ac.uk> Mon, 23 Oct 2023 10:58:19 +0100 chem-zfs-backup-server (0.9-ch112) focal; urgency=low * Release 1.0-ch112 * don't mark hosts as disabled at the point they get created * don't bail (due to set -e) if ssh-keyscan fails * Xymon test for backups is valid for 3 hours * Add script for moving a backup task rather than a host -- Catherine Pitt <cen1001@cam.ac.uk> Mon, 4 Sep 2023 10:42:59 +0100 chem-zfs-backup-server (0.9-ch110) focal; urgency=low * Release new package version * send-backup-to-server.sh copies additional config -- Adam Thorn <alt36@cam.ac.uk> Wed, 30 Aug 2023 11:00:01 +0100 chem-zfs-backup-server (0.9-ch109) focal; urgency=low * Cease attempt to unexport ZFS when moving backup to a different zpool -- Catherine Pitt <cen1001@cam.ac.uk> Wed, 23 Aug 2023 11:35:25 +0100 chem-zfs-backup-server (0.9-ch108) focal; urgency=low * Release version with custom rsync command option * Allow setting of global rsync command and rsync args -- Adam Thorn <alt36@cam.ac.uk> Thu, 27 Jul 2023 14:14:04 +0100 chem-zfs-backup-server (0.9-ch104) focal; urgency=low * release ch104 * restore distribution to focal * Add abilty to have a per-host ssh config file * move zfs-rync template config files out of /etc * move prepare scripts out of /etc * remove unused PRE scripts * release for jammy * add option to specify SSHOPTIONS to rsync tasks -- Adam Thorn <alt36@cam.ac.uk> Wed, 31 May 2023 11:01:25 +0100 chem-zfs-backup-server (0.9-ch102) focal; urgency=low * report which backup tasks are missing in the xymon report -- Adam Thorn <alt36@cam.ac.uk> Tue, 30 May 2023 11:37:22 +0100 chem-zfs-backup-server (0.9-ch101) focal; urgency=low * ensure xymon dot is red if we have a backup task that has never completed -- Adam Thorn <alt36@cam.ac.uk> Wed, 3 May 2023 09:10:05 +0100 chem-zfs-backup-server (0.9-ch100) focal; urgency=low * replace deprecated tempfile call with mktemp -- Catherine Pitt <cen1001@cam.ac.uk> Thu, 5 Jan 2023 09:53:49 +0000 chem-zfs-backup-server (0.9-ch99) focal; urgency=low * Redhat prepare scripts compresses MySQL backup -- Adam Thorn <alt36@cam.ac.uk> Mon, 19 Dec 2022 15:33:46 +0000 chem-zfs-backup-server (0.9-ch98) focal; urgency=low * Raise xymon alert if quota for a ZFS exceeds available+used * rename variable in xymon script * Add generic thisproperty() in xymon script, analagous to thisquota() * switch to internally using 'parsable (exact) values' for zfs commands * whitespace only: replace tabs with spaces -- Adam Thorn <alt36@cam.ac.uk> Mon, 31 Oct 2022 10:02:24 +0000 chem-zfs-backup-server (0.9-ch97) focal; urgency=low * analyse-snaphot-usage: add optional second argument for specifying the initial snapshot -- Adam Thorn <alt36@cam.ac.uk> Wed, 26 Oct 2022 11:08:42 +0100 chem-zfs-backup-server (0.9-ch96) focal; urgency=low * Add script to report the space that would be reclaimed by deleting older snapshots -- Adam Thorn <alt36@cam.ac.uk> Wed, 25 May 2022 09:11:03 +0100 chem-zfs-backup-server (0.9-ch95) focal; urgency=low * Ignore non-zero exit from systemd-detect-virt in prepare script -- Adam Thorn <alt36@cam.ac.uk> Tue, 24 May 2022 15:51:40 +0100 chem-zfs-backup-server (0.9-ch94) focal; urgency=low * Stop returning "true" from default prepare script * More ensuring errors propagate upwards from the prepare script * Fix generation of list of package files to exclude in the standard prepare script * Improve check of whether mysql is(/should be) running in default prepare script * Stop trying to dump ldap in prepare script (as we don't have any debian/ubuntu ldap servers!!) * Cease trying to configure dateext logrotation in prepare script -- Adam Thorn <alt36@cam.ac.uk> Mon, 25 Apr 2022 17:00:43 +0100 chem-zfs-backup-server (0.9-ch93) focal; urgency=low * Make default prepare scripts skip /lib/{modules,firmware} on xen VMs -- Adam Thorn <alt36@cam.ac.uk> Thu, 10 Mar 2022 09:10:31 +0000 chem-zfs-backup-server (0.9-ch92) focal; urgency=low * Ensure foreign keys will ON DELETE CASCADE when deleting a host -- Adam Thorn <alt36@cam.ac.uk> Wed, 9 Mar 2022 15:19:40 +0000 chem-zfs-backup-server (0.9-ch91) focal; urgency=low * Set TASKNAME correctly in send-backup-to-server.sh -- Adam Thorn <alt36@cam.ac.uk> Wed, 9 Mar 2022 15:14:33 +0000 chem-zfs-backup-server (0.9-ch90) focal; urgency=low * Release 0.9-ch90 * Add script to move a backup to another server * Remove move-machine.sh script -- Adam Thorn <alt36@cam.ac.uk> Mon, 20 Dec 2021 11:44:36 +0000 chem-zfs-backup-server (0.9-ch89) focal; urgency=low * move-machine.sh: update/fix usage message -- Adam Thorn <alt36@cam.ac.uk> Wed, 17 Nov 2021 11:02:09 +0000 chem-zfs-backup-server (0.9-ch88) focal; urgency=low * Update usage message to specify quotas should be set on sub-ZFSs, not the parent -- Adam Thorn <alt36@cam.ac.uk> Wed, 17 Nov 2021 10:11:26 +0000 chem-zfs-backup-server (0.9-ch87) focal; urgency=low * Further improve help message for new postgres backups -- Adam Thorn <alt36@cam.ac.uk> Wed, 17 Nov 2021 09:55:17 +0000 chem-zfs-backup-server (0.9-ch86) focal; urgency=low * Update help message for postgres targets to encourage usage of canonical script -- Adam Thorn <alt36@cam.ac.uk> Wed, 14 Jul 2021 12:38:05 +0100 chem-zfs-backup-server (0.9-ch85) focal; urgency=low * Prepend reporting lines with the zfs target name * Partial fix for behaviour where we see multiple backups for one task running at once -- Adam Thorn <alt36@cam.ac.uk> Thu, 8 Jul 2021 16:40:03 +0100 chem-zfs-backup-server (0.9-ch84) focal; urgency=low * Ensure pg-dump-script includes a dump of roles -- Adam Thorn <alt36@cam.ac.uk> Thu, 8 Jul 2021 14:44:37 +0100 chem-zfs-backup-server (0.9-ch83) focal; urgency=low * Add a script to do a postgres backup via pg_dump -- Adam Thorn <alt36@cam.ac.uk> Thu, 8 Jul 2021 10:44:00 +0100 chem-zfs-backup-server (0.9-ch82) focal; urgency=low * Call PRE and POST with same args as zfs-rsync.sh * Add an outline script for moving a whole zpool -- Adam Thorn <alt36@cam.ac.uk> Fri, 18 Jun 2021 14:39:26 +0100 chem-zfs-backup-server (0.9-ch81) focal; urgency=low * Release with correct list of conffiles * Cease distribution to xenial * Add a reminder to set a quota on a newly-created backup -- Catherine Pitt <cen1001@cam.ac.uk> Tue, 15 Jun 2021 14:01:47 +0100 chem-zfs-backup-server (0.9-ch78) focal; urgency=low * Add prepare-redhat script -- Adam Thorn <alt36@cam.ac.uk> Tue, 8 Jun 2021 15:05:25 +0100 chem-zfs-backup-server (0.9-ch77) focal; urgency=low * Add crossmnt to list of default NFS options -- Catherine Pitt <cen1001@cam.ac.uk> Wed, 12 May 2021 10:46:11 +0100 chem-zfs-backup-server (0.9-ch76) focal; urgency=low * Fix a bug in the move-machine script -- Catherine Pitt <cen1001@cam.ac.uk> Fri, 30 Apr 2021 09:14:14 +0100 chem-zfs-backup-server (0.9-ch75) focal; urgency=low * Make database connections short-lived -- Catherine Pitt <cen1001@cam.ac.uk> Mon, 18 Jan 2021 16:19:16 +0000 chem-zfs-backup-server (0.9-ch74) focal; urgency=low * Add missing template file for directory backups -- Adam Thorn <alt36@cam.ac.uk> Wed, 6 Jan 2021 16:46:39 +0000 chem-zfs-backup-server (0.9-ch73) focal; urgency=low * Pipe list of package-files through realpath, to resolve any symlinks -- Catherine Pitt <cen1001@cam.ac.uk> Fri, 11 Dec 2020 10:17:36 +0000 chem-zfs-backup-server (0.9-ch72) focal; urgency=low * Include postgresql-13 as a possible database server -- Catherine Pitt <cen1001@cam.ac.uk> Fri, 11 Dec 2020 09:27:42 +0000 chem-zfs-backup-server (0.9-ch71) focal; urgency=low * Release new version * Remove deprecated 'keys on scalar' usage * Remove explicit conffiles list (makedeb autopopulates with everything in /etc) -- Catherine Pitt <cen1001@cam.ac.uk> Mon, 9 Nov 2020 16:05:55 +0000 chem-zfs-backup-server (0.9-ch70) focal; urgency=low * Default prepare script supports Postgres 12 and up -- Catherine Pitt <cen1001@cam.ac.uk> Fri, 6 Nov 2020 10:16:39 +0000 chem-zfs-backup-server (0.9-ch69) focal; urgency=low * Release 0.9-ch69 * Release for focal * Add /swap.img to global ignore list * Add .upload-xenial file missed in 293288d -- Adam Thorn <alt36@cam.ac.uk> Wed, 7 Oct 2020 17:20:11 +0100 chem-zfs-backup-server (0.9-ch68) focal; urgency=low * Don't backup information/performance_schema dbs for mysql -- Adam Thorn <alt36@cam.ac.uk> Tue, 6 Oct 2020 11:47:27 +0100 chem-zfs-backup-server (0.9-ch67) focal; urgency=low * Release 0.9-ch67 * Merge branch 'improve_pre_error_handling' into 'master' * Use set -e on mysql-dump-script (so any error bubbles up to zfs-rsync.d) * Make zfs-rsync.sh exit in error if PRE script fails * Log starting time of zfs-rsync.sh * Move setting of vars earlier in zfs-rsync.sh * Stop setting -e in zfs-rsync.sh * remove commented lines from script * Remove legacy script -- Adam Thorn <alt36@cam.ac.uk> Tue, 6 Oct 2020 09:52:57 +0100 chem-zfs-backup-server (0.9-ch66) focal; urgency=low * Make mysql-dump-script detect and use .my.cnf where possible * Add -f to rm command in mysql dump script, to ignore missing files -- Adam Hall <ajh221@cam.ac.uk> Tue, 7 Apr 2020 17:30:02 +0100 chem-zfs-backup-server (0.9-ch65) focal; urgency=low * version bump changed maintainer mention name of git repository since it doesn't match package name * Bail if hostname is misspelt * Commit .upload files after release of 0.9-ch64 -- Adam Thorn <alt36@cam.ac.uk> Wed, 18 Dec 2019 10:11:37 +0000 chem-zfs-backup-server (0.9-ch64) focal; urgency=low * Remove README * Add check to see if ZFS for host exists in retirehost * Cease distributing to jessie, wheezy * Remove BSD stuff -- Adam Thorn <alt36@cam.ac.uk> Tue, 30 Jul 2019 09:16:39 +0100 chem-zfs-backup-server (0.9-ch63) focal; urgency=low * Fully-qualify paths to zfs, zpool commands -- Catherine Pitt <cen1001@cam.ac.uk> Tue, 23 Jul 2019 14:39:52 +0100 chem-zfs-backup-server (0.9-ch62) focal; urgency=low * Add script for adding new task to existing server * set perms on logrotate file in postinst -- Catherine Pitt <cen1001@cam.ac.uk> Tue, 23 Apr 2019 12:47:10 +0100 chem-zfs-backup-server (0.9-ch61) focal; urgency=low * new-backup-rsnapshot better support for postgres backups -- Adam Thorn <alt36@cam.ac.uk> Wed, 16 Jan 2019 10:45:31 +0000 chem-zfs-backup-server (0.9-ch60) focal; urgency=low * Let's not worry if we haven't backed up a machine that has been offline for 3 months (instead of 6 months) -- Adam Thorn <alt36@cam.ac.uk> Thu, 6 Dec 2018 11:20:16 +0000 chem-zfs-backup-server (0.9-ch59) focal; urgency=low * Exclude /root/.ansible * Exclude /var/lib/os-prober/mount * Ignore /usr/share/doc, /usr/share/texlive - takes a long time to enumerate contents which we then exclude anyway due to being deb-provided * Globally ignore /home/*/.cache/ * Add message at top of global_ignore to dissuade local edits * Add /var/lib/xymon/tmp/ to packaged global_ignore -- Adam Thorn <alt36@cam.ac.uk> Thu, 6 Dec 2018 11:07:55 +0000 chem-zfs-backup-server (0.9-ch57) focal; urgency=low * 0.9-ch57 * Tidy global_ignore - remove some long-since unneeded lines that should have been host-specific in the first place * Add /scratch2 to global_ignore (RT 177941) -- Adam Thorn <alt36@cam.ac.uk> Wed, 7 Nov 2018 10:24:59 +0000 chem-zfs-backup-server (0.9-ch56) focal; urgency=low * Escape $ in ssh commands used in prepare scripts -- Adam Thorn <alt36@cam.ac.uk> Tue, 6 Nov 2018 14:25:17 +0000 chem-zfs-backup-server (0.9-ch55) focal; urgency=low * Add check to xymon script - see if zfs or its parent has a quota -- Adam Thorn <alt36@cam.ac.uk> Mon, 22 Oct 2018 14:43:28 +0100 chem-zfs-backup-server (0.9-ch54) focal; urgency=low * Don't worry about backup age (i.e. report green) if machine has not been pingable for ~6 months -- Adam Thorn <alt36@cam.ac.uk> Thu, 18 Oct 2018 14:32:47 +0100 chem-zfs-backup-server (0.9-ch53) focal; urgency=low * Remove unused scripts for backing up source ZFS filesystems * Don't ignore rsync error 23; it hides really-failing backups -- Adam Thorn <alt36@cam.ac.uk> Tue, 19 Jun 2018 10:03:19 +0100 chem-zfs-backup-server (0.9-ch52) focal; urgency=low * Better test of when a machine was last pingable via webpage that queries hobbit-rrd backend -- Adam Thorn <alt36@cam.ac.uk> Thu, 11 Jan 2018 10:54:03 +0000 chem-zfs-backup-server (0.9-ch51) focal; urgency=low * Update zfs-backup xymon script to include name of backup server -- Catherine Pitt <cen1001@cam.ac.uk> Thu, 30 Nov 2017 11:32:48 +0000 chem-zfs-backup-server (0.9-ch50) focal; urgency=low * Change postgres dependency to specify version -- Catherine Pitt <cen1001@cam.ac.uk> Tue, 10 Oct 2017 16:11:22 +0100 chem-zfs-backup-server (0.9-ch49) focal; urgency=low * Add two new specialised prepare scripts -- Adam Thorn <alt36@cam.ac.uk> Fri, 11 Aug 2017 14:13:26 +0100 chem-zfs-backup-server (0.9-ch48) focal; urgency=low * Version: 0.9-ch48 * Raise a red dot if a machine has never completed a backup -- Catherine Pitt <cen1001@cam.ac.uk> Thu, 1 Jun 2017 15:23:23 +0100 chem-zfs-backup-server (0.9-ch47) focal; urgency=low * Add prepare script that does not dump mysql or postgres * Add script for migrating from rsnapshot style backups -- Adam Thorn <alt36@cam.ac.uk> Wed, 29 Mar 2017 13:04:29 +0100 chem-zfs-backup-server (0.9-ch45) focal; urgency=low * 0.9-ch45 * For offline machines, use the time between last backup and last change of conn dot status to decide on backup status * Add sendToXymon() for sending arbitrary msgs to xymon server * Standardise whitespace -- Adam Thorn <alt36@cam.ac.uk> Tue, 28 Mar 2017 13:24:28 +0100 chem-zfs-backup-server (0.9-ch44) focal; urgency=low * Version: 0.9-ch44 * Remove --prune-empty-dirs from list of rsync arguments -- Adam Thorn <alt36@cam.ac.uk> Tue, 14 Feb 2017 11:09:45 +0000 chem-zfs-backup-server (0.9-ch43) focal; urgency=low * v0.9-ch43 * deb depends on pv * Add release-holds script -- Adam Thorn <alt36@cam.ac.uk> Tue, 14 Feb 2017 09:39:26 +0000 chem-zfs-backup-server (0.9-ch42) focal; urgency=low * v0.9-ch42 * Add retirehost script -- Adam Thorn <alt36@cam.ac.uk> Thu, 12 Jan 2017 16:07:57 +0000 chem-zfs-backup-server (0.9-ch41) focal; urgency=low * Release 0.9-ch41 * Remove unneeded perl include path on xymon script * Add new scripts for doing mysql backups by dumping each table to a separate file -- Adam Thorn <alt36@cam.ac.uk> Thu, 8 Dec 2016 13:54:35 +0000 chem-zfs-backup-server (0.9-ch39) focal; urgency=low * Version bump * Add .log suffix to a bunch of logfile names, so logrotate works properly * Change xymon test to ttl of 60m with interval of 45m -- Adam Thorn <alt36@cam.ac.uk> Tue, 8 Nov 2016 17:54:10 +0000 chem-zfs-backup-server (0.9-ch37) focal; urgency=low * Release 0.9-ch37 * Fix which logfiles are logrotated -- Frank Lee <rl201@cam.ac.uk> Wed, 7 Sep 2016 17:47:27 +0100 chem-zfs-backup-server (0.9-ch36) focal; urgency=low * Clean upload flags * Built * Adjust method for NFS export and automatically export when created -- Adam Thorn <alt36@cam.ac.uk> Tue, 6 Sep 2016 14:55:20 +0100