summaryrefslogtreecommitdiff
path: root/tickets/20bdae3913de49d4afd544d36996ce4b/Maildir/new/1456001185.M320574P8737Q35.hrun
blob: d800e08976cbb0de9867651267ca4ef87fe8b63d (plain)
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
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 31D5A2B80C
	for <distix@pieni.net>; Mon, 21 Dec 2015 17:59:49 +0100 (CET)
Received: from platypus.pepperfish.net (unknown [10.112.100.20])
	by bagpuss.pepperfish.net (Postfix) with ESMTP id 75AFCBA1;
	Mon, 21 Dec 2015 16:59:48 +0000 (GMT)
Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
	by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
	id 1aB3oK-0007IF-BS; Mon, 21 Dec 2015 16:59:48 +0000
Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
 by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
 id 1aB3oI-0007I7-L3
 for <obnam-dev@obnam.org>; Mon, 21 Dec 2015 16:59:46 +0000
Received: from pieni.net ([95.142.166.37] ident=postfix)
 by mx0.pepperfish.net with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
 (Exim 4.80) (envelope-from <liw@liw.fi>) id 1aB3oG-0006Bv-Ss
 for obnam-dev@obnam.org; Mon, 21 Dec 2015 16:59:46 +0000
Received: from exolobe1.liw.fi (188-127-214-94.cust.suomicom.net
 [188.127.214.94])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pieni.net (Postfix) with ESMTPSA id 053B52B7AA;
 Mon, 21 Dec 2015 17:59:38 +0100 (CET)
Received: from exolobe1.liw.fi (localhost [127.0.0.1])
 by exolobe1.liw.fi (Postfix) with ESMTPS id 4D08040373;
 Mon, 21 Dec 2015 17:59:33 +0100 (CET)
Date: Mon, 21 Dec 2015 17:59:32 +0100
From: Lars Wirzenius <liw@liw.fi>
To: Ben Boeckel <mathstuf@gmail.com>
Message-ID: <20151221165932.GS2511@exolobe1.liw.fi>
References: <20150918050247.GA8128@bronto-burt.dev.benboeckel.net>
 <1446094196-14166-1-git-send-email-mathstuf@gmail.com>
 <20151029045526.GA13909@bronto-burt.dev.benboeckel.net>
 <20151220141633.GE2511@exolobe1.liw.fi>
 <20151221152224.GA21839@megas.khq.kitware.com>
 <20151221153318.GR2511@exolobe1.liw.fi>
 <20151221161706.GD21839@megas.khq.kitware.com>
MIME-Version: 1.0
In-Reply-To: <20151221161706.GD21839@megas.khq.kitware.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Score: -3.4
X-Spam-Score-int: -33
X-Spam-Bar: ---
X-Scanned-By: pepperfish.net, Mon, 21 Dec 2015 16:59:46 +0000
X-Spam-Report: Content analysis details: (-3.4 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -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.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-ACL-Warn: message may be spam
X-Scan-Signature: ead9a2b6d4436a72c03b49bb9387508d
Cc: obnam-dev@obnam.org
Subject: Re: [PATCH] backup: take an inhibitor lock if possible
X-BeenThere: obnam-dev@obnam.org
X-Mailman-Version: 2.1.5
Precedence: list
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>
Content-Type: multipart/mixed; boundary="===============8250331839199722307=="
Mime-version: 1.0
Sender: obnam-dev-bounces@obnam.org
Errors-To: obnam-dev-bounces@obnam.org


--===============8250331839199722307==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="nSQp8DZZn7gZbDHt"
Content-Disposition: inline


--nSQp8DZZn7gZbDHt
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 21, 2015 at 11:17:06AM -0500, Ben Boeckel wrote:
> On Mon, Dec 21, 2015 at 16:33:18 +0100, Lars Wirzenius wrote:
> > That just indicates to me that you should write a simpler program,
> > perhaps as a wrapper around systemd-inhibit. :)
>=20
> Would this at least be acceptable to include in obnam? obnam-inhibit? It
> seems silly to have everyone rewrite this thing when it is such an
> important behavior.

I'd rather it was a separate, generic utility than something named so
people think it's related to Obnam, sorry. I'd be happy to add
pointers to it to Obnam documentation, and have the Obnam Debian
packaging suggest it.

> > GUI programs such as video players are not generally composable.
> > Command line programs such as Obnam are. That's an important
> > distinction.
>=20
> Sorry, when am I ever going to pipe obnam output to anything other than
> a log file (or less, sed, etc.)? Does obnam even read stdin?

There are other forms of composability than pipes. For example, the
flock(1) utility, which creates a lock file while it runs a command,
and automatically releases it even if it crashes. That's the same
pattern as I suggest for the inhibition utility.

That said, I expect Obnam to start reading from stdin some day. And
produce output to stdout. Both for using in pipelines. Examples:

* Have Obnam read the list of files to back up from stdin, fed by,
  say, find(1).

* Have "obnam export-repository" produce a representation of a backup
  repository that is independent of the backup storage format, and
  "obnam import-repository" read such a representation to create a new
  repository. This would be quite useful for repository conversion.

--=20
Schr=F6dinger's backup hypothesis: the condition of any backup is
undefined until a restore is attempted. -- andrewsh

--nSQp8DZZn7gZbDHt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWeC/zAAoJEGwvphbseiAxE5kQALN8Q8HOdWIQ8EbiOkB4Moq+
kAB82LQS65/naMxFvpzS8pMJ6BUe1u87UydxWAC9/Ztd7SqczHfu+czk7Wswn7Py
+C+XDnjZ4X0gfPDlgOUbfQ4NOz0CY6+bw/WgI91MfTkgmZ7mqsM8hQ0lE7ZqsABt
aVuNEMGzItWe9PAc5VPVCOrvNJBBvRn0E4/kbaG3tLStRewdbtJeSZyXMLIl97OM
VwGKfBu5fwkyJMzBbf5oR98WN+VT9RCOM4OuLNFWEa67q/0gc8du37GRJbrn9hkx
G8KoG1v0Bj3rK/GBZdLWOfg1EUOJQyeND5swAjIR6kVSDWVHPOq4njD+az/evDSb
rYCzVdVuaYUDE8njE/yl05e+SvjaHv6szbqjJl+sRz2vy2Mz7nl1IVuy4ppnTE+m
YKmeL3BD8kwB3yzE5kfTNSgQRnR1mQGRrXt/HDQ5XVhg6IO9uSbQBSXV2ZOCJ1pk
zUsQrakBZzVKJuKGqL+t4yzKW8eleGUuz2b0rDSC4a5BL3qd86MXPj8knuN5K42x
Q2i6d88ah2r4RwiQarC2CaSyu9o5UW2xvTwIHzioIfGA5S0h3UTPmSYKjgNnvlsn
e+vpIfywAIsMRLLQT051tp0MuLyhIjju4j/oSTqkY1UXasWgX7dW7lF+M0pnve5x
g5fSf4XifFywSMsEZiqr
=bctk
-----END PGP SIGNATURE-----

--nSQp8DZZn7gZbDHt--


--===============8250331839199722307==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
obnam-dev mailing list
obnam-dev@obnam.org
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org

--===============8250331839199722307==--