1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
Return-Path: <obnam-dev-bounces@obnam.org>
X-Original-To: distix@pieni.net
Delivered-To: distix@pieni.net
Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by pieni.net (Postfix) with ESMTPS id 4BECB2B875
for <distix@pieni.net>; Fri, 18 Sep 2015 07:03:07 +0200 (CEST)
Received: from platypus.pepperfish.net (unknown [10.112.100.20])
by bagpuss.pepperfish.net (Postfix) with ESMTP id 99AAE5E6;
Fri, 18 Sep 2015 06:03:06 +0100 (BST)
Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
id 1ZcnpC-0006u0-Ev; Fri, 18 Sep 2015 06:03:06 +0100
Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
id 1ZcnpA-0006tt-JK
for <obnam-dev@obnam.org>; Fri, 18 Sep 2015 06:03:04 +0100
Received: from mail-ig0-f173.google.com ([209.85.213.173])
by mx0.pepperfish.net with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128)
(Exim 4.80) (envelope-from <mathstuf@gmail.com>) id 1Zcnp8-00058L-5Y
for obnam-dev@obnam.org; Fri, 18 Sep 2015 06:03:04 +0100
Received: by igxx6 with SMTP id x6so10169585igx.1
for <obnam-dev@obnam.org>; Thu, 17 Sep 2015 22:02:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=date:from:to:subject:message-id:reply-to:mime-version:content-type
:content-disposition:user-agent;
bh=/T/xt8N0AOF+B4X8LU58JD/8Mpl8wX/zm8IM5yeA91k=;
b=AVhCkjwJyDYqEi4blXNtA2Zg8CNuQb4/ZLJ5yKQOZP44emU4+O8K1LuxP/ZgapbPpx
H5sc9ZBrZMXDbaaMkxrByWtJ4b9cXfgl1DZrOGxR9BTVyJK50Ry/ERGzP/dYEOKFowzI
BiPuTjb+6stJ5Q5+AX0KTo5+xF/yF3XjFxjej5TBsYCf/DOdm8n68vIuDjCRGEG1jr9r
s+TOP1UZO7ZSdEdfOmEzFuSXS5Jc3C4QeMjJS94ZPr1hlmGD+fgP3Gb8hZ4vMUI9RUlw
8JLy34XPr7CCm2mkaPOJpVdb1RIErXKKm2Mzs7fxcPTzIS3s2eyjFpuRYvs29Tbx7QpT
BqLw==
X-Received: by 10.50.109.198 with SMTP id hu6mr31538098igb.3.1442552570564;
Thu, 17 Sep 2015 22:02:50 -0700 (PDT)
Received: from localhost (142.sub-70-209-132.myvzw.com. [70.209.132.142])
by smtp.gmail.com with ESMTPSA id j3sm5818348ige.0.2015.09.17.22.02.49
for <obnam-dev@obnam.org>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 17 Sep 2015 22:02:49 -0700 (PDT)
Date: Fri, 18 Sep 2015 01:02:47 -0400
From: Ben Boeckel <mathstuf@gmail.com>
To: obnam-dev@obnam.org
Message-ID: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
X-Spam-Score: -2.0
X-Spam-Score-int: -19
X-Spam-Bar: --
X-Scanned-By: pepperfish.net, Fri, 18 Sep 2015 06:03:04 +0100
X-Spam-Report: Content analysis details: (-2.0 points)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust [209.85.213.173 listed in list.dnswl.org]
-1.0 PPF_USER_AGENT_MUTT User-Agent: contains Mutt (Mutt isn't a spam
tool) -0.5 PPF_USER_AGENT User-Agent: exists
1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(mathstuf[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-ACL-Warn: message may be spam
X-Scan-Signature: dad44cf097470dfea4dc038187207232
Subject: obnam should take an inhibitor lock during backup
X-BeenThere: obnam-dev@obnam.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: mathstuf@gmail.com
List-Id: Obnam development discussions <obnam-dev-obnam.org>
List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
<mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
List-Post: <mailto:obnam-dev@obnam.org>
List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
<mailto:obnam-dev-request@obnam.org?subject=subscribe>
Sender: obnam-dev-bounces@obnam.org
Errors-To: obnam-dev-bounces@obnam.org
Hi,
During a backup, it would be nice to have obnam block suspending the
machine. This can be done via logind's DBus API[1].
It looks like it's ripe for a Python context manager since it returns an
FD which should be closed when inhibiting should be stopped (and would
be a no-op if the plugin is disabled or the DBus endpoint is
unavailable).
I'll look at implementing this at some point, hopefully this month, but
I make no guarantees (currently my "go to sleep" script is commented out
to not mess up obnam, so there is pressure to fix it :) ).
--Ben
[1]http://freedesktop.org/wiki/Software/systemd/inhibit/
_______________________________________________
obnam-dev mailing list
obnam-dev@obnam.org
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
|