Victor,
Thanks for your good bug report!!!
Try the attached patch, you can manually apply it to the amflush script.
Jean-Louis
On 16/08/17 09:56 AM, Victor Souza wrote:
*Hi everyone!*
I've upgraded my amanda version from 3.3.4 to 3.4.4 and I noticed that
when I tried to flush older dumps to a tape I just can choose ALL or
the most recent. When I try to add a old one, amanda chooses the last one.
Follow example:
*Tried to add 3 dumps, amanda choose the last one 3 times*
**************************************************************************
**************************************************************************
[~]$ amflush arquivos
Multiple Amanda runs in holding disks; please pick one by letter:
A. 20170801070001
B. 20170801151229
C. 20170802143444
D. 20170803222147
E. 20170806103631
F. 20170807112802
G. 20170808070001
H. 20170808131952
½. 20170808182322
J. 20170809070002
K. 20170810070002
L. 20170811070002
M. 20170811225325
N. 20170812091326
O. 20170815104051
Select datestamps to flush [A..O or <enter> for all]: ADK
Flushing dumps from 20170815104051, 20170815104051, 20170815104051
using storage "arquivos", tape changer "".
To volume AR-002 or a new volume, (The last dumps were to volume AR-049
Are you sure you want to do this [yN]? N
Ok, quitting. Run amflush again when you are ready.
**************************************************************************
**************************************************************************
*Tried to add all, it works:*
**************************************************************************
**************************************************************************
[~]$ amflush arquivos
Multiple Amanda runs in holding disks; please pick one by letter:
A. 20170801070001
B. 20170801151229
C. 20170802143444
D. 20170803222147
E. 20170806103631
F. 20170807112802
G. 20170808070001
H. 20170808131952
I. 20170808182322
J. 20170809070002
K. 20170810070002
L. 20170811070002
M. 20170811225325
N. 20170812091326
O. 20170815104051
Select datestamps to flush [A..O or <enter> for all]:
Flushing dumps from 20170801070001, 20170801151229, 20170802143444,
20170803222147, 20170806103631, 20170807112802, 20170808070001,
20170808131952, 20170808182322, 20170809070002, 20170810070002,
20170811070002, 20170811225325, 20170812091326, 20170815104051 using
storage "arquivos", tape changer "".
To volume AR-002 or a new volume, (The last dumps were to volume AR-049
Are you sure you want to do this [yN]? N
Ok, quitting. Run amflush again when you are ready.
**************************************************************************
**************************************************************************
*Tried to add an older one, amanda choose the last one:*
**************************************************************************
**************************************************************************
[~]$ amflush arquivos
Multiple Amanda runs in holding disks; please pick one by letter:
A. 20170801070001
B. 20170801151229
C. 20170802143444
D. 20170803222147
E. 20170806103631
F. 20170807112802
G. 20170808070001
H. 20170808131952
I. 20170808182322
J. 20170809070002
K. 20170810070002
L. 20170811070002
M. 20170811225325
N. 20170812091326
O. 20170815104051
Select datestamps to flush [A..O or <enter> for all]: F
Flushing dumps from 20170815104051 using storage "arquivos", tape
changer "".
To volume AR-002 or a new volume, (The last dumps were to volume AR-049
Are you sure you want to do this [yN]? N
Ok, quitting. Run amflush again when you are ready.
**************************************************************************
**************************************************************************
When I was using the amanda 3.3.4 version, everything was working
perfectly, but after this upgrade, I can't adjust the amflush.
Can someone help me with this issue?
*Regards,*
cid:part1.08020802.02070001@acotel.com
*Victor Souza
*TI - Produção
Rua General Argolo, 33, - Rio de Janeiro - Brasil
Skype - vitinhu_cds
Phone -(+55) 21 3523-6577
Phone -(+55) 21 97991-0550
e-mail-victor.so...@acotel.com <mailto:victor.so...@acotel.com>
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/server-src/amflush.pl b/server-src/amflush.pl
index 1a5dba7..8d71fd4 100644
--- a/server-src/amflush.pl
+++ b/server-src/amflush.pl
@@ -139,7 +139,7 @@ sub pick_datestamp {
undef @datestamp;
last;
}
- push @datestamp, $ts[ord($char)-ord('A')];
+ push @datestamp, $ts[ord($c)-ord('A')];
}
}
return @datestamp;