From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QBHeDK7MQ2BqQQAA0tVLHw (envelope-from ) for ; Sat, 06 Mar 2021 18:40:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4NauCK7MQ2CQEgAA1q6Kng (envelope-from ) for ; Sat, 06 Mar 2021 18:40:46 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DB5B18055 for ; Sat, 6 Mar 2021 19:40:45 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A044D27079; Sat, 6 Mar 2021 13:40:39 -0500 (EST) Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by mail.notmuchmail.org (Postfix) with ESMTPS id AD37D202B3 for ; Sat, 6 Mar 2021 13:40:37 -0500 (EST) Received: from mdeb (24-113-169-116.wavecable.com [24.113.169.116]) (Authenticated sender: matt@rfc20.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E668B100008; Sat, 6 Mar 2021 18:40:32 +0000 (UTC) From: Matt Armstrong To: David Bremner , notmuch@notmuchmail.org Subject: Notmuch and backups References: <20210217201045.2021106-1-david@tethera.net> Date: Sat, 06 Mar 2021 10:40:29 -0800 Message-ID: <87pn0cm8gy.fsf@mdeb> MIME-Version: 1.0 Message-ID-Hash: VNTV5T334U5NOX5PJ4KL7LHRARTJNLQO X-Message-ID-Hash: VNTV5T334U5NOX5PJ4KL7LHRARTJNLQO X-MailFrom: matt@rfc20.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615056045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0IYd3jgujcqw2g+Qn2VJuLob45vOBBpmtqMDEQG4OwM=; b=GN1x1DLumfWv4pQO+e0vXzcxlOPO1v9B3ybqe3r5IbJKMPvN7YTV9/97Z0mzIz2ZdAve+E hHr3OsegB2rGE1lZrKuvUAkQj/yG1UCLwB6vgV/o4ZzSfd/yvN/SrWV2GR2HcMcY+8e5h7 4EbnPnY1nvgWO5sX9/dXxie20Xaww/0SxbpcXzqOwJoNtikLu68wrk5B0CcAHl7uSIibjV rvlihQra4J+BEFtWrzuLKZpqVszHlWxvq9aV+zCdZcwlqNIicBkYvB/pqWQRK1H8tdIAQT Y+nHfybk/ZOo/cCcUbxjUWC3pBo9O1eMYW18izTdkiCSHJOkE/4Bdpekt5/UKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615056045; a=rsa-sha256; cv=none; b=d1AyBtW72wcZ+I4O10q60mrAsTc5uvnxrJY5W7Y/Ha5nLdq35HzMxxYbyoxSaPhamaCE1X RqiteAhavsu2XKpizcA6102qUqbGuLf8RhsktGIFs1R7RagfwYZ7IrsSWgxKSE+UDCQvQb 8zI/azGxqPNETWdS6CuA8eRUdB1rNhsxrJ59070AslTAWkF3V7M/XbX8JXh58mJ+TEcg4L TaNmd+pVJs61AOSZ09Nc/lg+fSFLVmb+5EUZxiUcAKjZ0UN1mxjhZW6C2mG+dYqez0Df/x wHebJGrkWNzL8xur9U1AjNOANqy9BqnhOC9eSOEYBSqXowTgoJhohoUz+9CWlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 5DB5B18055 X-Spam-Score: -1.40 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4wNVdEZBCrOq David Bremner writes: [...] > + case NOTMUCH_CONFIG_BACKUP_DIR: > + return "database.backup_dir"; [...] David, your recent changes that allow configurable separation of the mail store and .notmuch files look like good ideas to me. Separately, I've recently set up backups of my system and noticed that the Xapian files are an order of magnitude larger than the notmuch dumps (3.6 GiB vs. 15 MiB). Is there any turn key code in notmuch itself to keep a rolling set of "recent" notmuch dumps? Alternatively, have folks contributed any such thing? Failing everything, I can roll my own with cron and maybe logrotate or something similar. I thought I'd ask before going that way.