Stefan,

can you try the attached patch?

Jean-Louis

On 24/10/17 03:00 PM, Jean-Louis Martineau wrote:
On 24/10/17 02:45 PM, Jean-Louis Martineau wrote:
On 24/10/17 02:29 PM, Stefan G. Weichinger wrote:
Am 2017-10-24 um 20:25 schrieb Jean-Louis Martineau:

This is not what you want.
You want amlabel to do its operation on the vault storage.
amlabel operate on the first configured storage, so this is what you
must change.

$ amlabel -ostorage=vault daily vault01 slot 1
thanks, but now:

$ amlabel -ostorage=vault daily vault01 slot 1
argument 'vault': string expected
argument 'vault': string expected

I don't get it, can you try the following:

amlabel -ostorage='vault' daily vault01 slot 1
amlabel -ostorage="vault" daily vault01 slot 1
amlabel -ostorage='"vault"' daily vault01 slot 1

I found why it doesn't work with a 'vault' storage.
The same parser is used for the configuration files and the -o argument, but 'vault' is a reserved keyword in amanda, so you must pass a string to the parser

amlabel -ostorage='"vault"' daily vault01 slot 1


Jean-Louis

This message is the property of CARBONITE, INC. and may contain confidential or 
privileged information.
If this message has been delivered to you by mistake, then do not copy or 
deliver this message to anyone.  Instead, destroy it and notify me by reply 
e-mail
diff --git a/common-src/conffile.c b/common-src/conffile.c
index f8df190..bb670ce 100644
--- a/common-src/conffile.c
+++ b/common-src/conffile.c
@@ -4280,7 +4280,7 @@ read_storage_identlist(
     free_val_t(val);
     ckseen(&val->seen);
     val->v.identlist = NULL;
-    get_conftoken(CONF_ANY);
+    get_conftoken(CONF_IDENT);
     while (tok == CONF_STRING || tok == CONF_IDENT) {
 	val->v.identlist = g_slist_append(val->v.identlist,
 					  g_strdup(tokenval.v.s));

Reply via email to