summaryrefslogtreecommitdiff
path: root/tickets/3802012a45ca4b7fb7d1aa3f3cda1775/Maildir/new/1482957613.M271696P1501Q1.hrun
blob: ec0f3dd5dd0a337d867ca6f3598b589e9565e870 (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
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 191E824CEE
	for <distix@pieni.net>; Wed, 28 Dec 2016 21:36:03 +0100 (CET)
Received: from platypus.pepperfish.net (unknown [10.112.100.20])
	by bagpuss.pepperfish.net (Postfix) with ESMTP id A6296B86;
	Wed, 28 Dec 2016 20:36:02 +0000 (GMT)
Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
	by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
	id 1cMKx8-0004x0-A7; Wed, 28 Dec 2016 20:36:02 +0000
Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
 by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
 id 1cMKx6-0004vt-Ls
 for <obnam-dev@obnam.org>; Wed, 28 Dec 2016 20:36:00 +0000
Received: from davros.xk7.net ([46.43.0.197])
 by mx0.pepperfish.net with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
 (Exim 4.80) (envelope-from <paul@xk7.net>) id 1cMKx4-00027t-Ka
 for obnam-dev@obnam.org; Wed, 28 Dec 2016 20:36:00 +0000
Received: from [IPv6:2a02:8011:1f:0:89e8:c233:ef9a:b197] (unknown
 [IPv6:2a02:8011:1f:0:89e8:c233:ef9a:b197])
 by davros.xk7.net (Postfix) with ESMTPSA id 7F81AE561E
 for <obnam-dev@obnam.org>; Wed, 28 Dec 2016 20:35:45 +0000 (GMT)
To: obnam-dev@obnam.org
From: Paul Waring <paul@xk7.net>
Message-ID: <5e1732e1-ad95-ae51-5328-2896962371ea@xk7.net>
Date: Wed, 28 Dec 2016 20:35:45 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Pepperfish-Transaction: 2a62-4256-f3ed-151b
X-Spam-Score: -5.8
X-Spam-Score-int: -57
X-Spam-Bar: -----
X-Scanned-By: pepperfish.net, Wed, 28 Dec 2016 20:36:00 +0000
X-Spam-Report: Content analysis details: (-5.8 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.3 PPF_FROM_UK RBL: A Received line involves an address from the UK
 [46.43.0.197 listed in gb.country.dnsbl.rjek.com]
 -0.5 PPF_USER_AGENT         User-Agent: exists
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -3.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
 -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: bdc2be5dc634686df142fe367da3f314
Subject: Improving error message when restoring on a different client
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>
Sender: obnam-dev-bounces@obnam.org
Errors-To: obnam-dev-bounces@obnam.org

I recently tried restoring backups of client A on another machine B 
using the following command from the obnam documentation.

obnam mount -r /path/to/repository --to ~/restore/

The error message I received was:

ERROR: R24424X: Repository client B does not exist

I had no idea what R24424X was or why obnam would be telling me that 
client B didn't exist when I wanted to restore client A (I keep one 
client per repository, which may not be a typical use case).

I eventually worked out that I had to use '--client-name A' as an extra 
argument to 'obnam mount'. I was wondering if this error message could 
be improved by hinting to the user as to which command line option they 
need, e.g.

ERROR: R24424X: Repository client B does not exist. If you are restoring 
to a different client, try: --client-name [client]

Alternatively, perhaps it might be worth documenting the use of 
--client-name in the 'Restoring from backups' section of the manual? I 
am happy to improve the docs, but I have no idea where to start with the 
code.

Thanks

Paul

-- 
Paul Waring
Freelance consultant
https://www.pwaring.com

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