From c08df0440c4519607cd221b8689c6e7e5f696518 Mon Sep 17 00:00:00 2001 From: Adam Thorn <alt36@cam.ac.uk> Date: Fri, 18 Jun 2021 13:37:21 +0100 Subject: [PATCH] Add a reminder to set a quota on a newly-created backup I don't think there's a sensible default quota; the value for a workstation will be very different to a tiny VM, for example. --- ROOT/DEBIAN/control | 2 +- ROOT/usr/lib/chem-zfs-backup-server/new-backup-rsnapshot | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ROOT/DEBIAN/control b/ROOT/DEBIAN/control index 663e6c4..8070df4 100644 --- a/ROOT/DEBIAN/control +++ b/ROOT/DEBIAN/control @@ -3,6 +3,6 @@ Priority: optional Section: otherosfs Maintainer: Chemistry COs <support@ch.cam.ac.uk> Architecture: all -Version: 0.9-ch78 +Version: 0.9-ch79 Depends: zfs-dkms, postgresql-13 | postgresql-9.5 | postgresql-9.4 , liblockfile-simple-perl, libdbi-perl, libjson-perl, libzfs-perl-chem, libnet-openssh-perl, libdbd-pg-perl, mbuffer, rsync, nfs-kernel-server, pv, libwww-curl-perl Description: a backup system using ZFS (repository 'backup-scheduler') diff --git a/ROOT/usr/lib/chem-zfs-backup-server/new-backup-rsnapshot b/ROOT/usr/lib/chem-zfs-backup-server/new-backup-rsnapshot index 419f9ca..7e6e632 100755 --- a/ROOT/usr/lib/chem-zfs-backup-server/new-backup-rsnapshot +++ b/ROOT/usr/lib/chem-zfs-backup-server/new-backup-rsnapshot @@ -165,3 +165,6 @@ while ! [ -z $1 ] ; do shift done dosql "update host set disabled=false where hostname='$FQDN';" + +echo "Please set a quota:" +echo " zfs set quota=\$QUOTA $TGT" -- GitLab