On Tuesday 28 May 2019 12:49:05 pm Charles Curley wrote:

> On Tue, 28 May 2019 11:40:33 -0400
>
> Gene Heskett <ghesk...@shentel.net> wrote:
> > In my build on stretch the tape header, with normally contains
> > instructions for a gzip/tar only system, the recipe for bare
> > recovery has disappeared.  It now looks like this:
> > AMANDA: TAPESTART DATE 20190527162707 TAPE Dailys-1
> >
> > There is supposed to be a 2nd line, showing how to unpack the
> > archive with nothing but gzip and tar,
> >
> >
> > Cheers, Gene Heskett
>
> I can confirm that for the first file per VTAPE on my build:
>
> root@amanda2:/var/amanda/vtapes/slot1# od -N 96 -A x -t x1z -v
> 00000.DailySet1-001 000000 41 4d 41 4e 44 41 3a 20 54 41 50 45 53 54
> 41 52  >AMANDA: TAPESTAR< 000010 54 20 44 41 54 45 20 32 30 31 39 30
> 35 32 37 31  >T DATE 201905271< 000020 33 30 38 34 35 20 54 41 50 45
> 20 44 61 69 6c 79  >30845 TAPE Daily< 000030 53 65 74 31 2d 30 30 31
> 0a 0c 0a 00 00 00 00 00  >Set1-001........< 000040 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00  >................< 000050 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00  >................< 000060
> root@amanda2:/var/amanda/vtapes/slot1#
>
> However it also seems to be the case for Amanda 3.3.9-5, the current
> stable version on debian:
>
> root@hawk:/crc/backs/myob/amanda/DailySet1/slot1# od -N 96 -A x -t x1z
> -v 00000.DailySet1_01 000000 41 4d 41 4e 44 41 3a 20 54 41 50 45 53 54
> 41 52  >AMANDA: TAPESTAR< 000010 54 20 44 41 54 45 20 32 30 31 39 30
> 34 31 32 30  >T DATE 201904120< 000020 30 30 31 30 31 20 54 41 50 45
> 20 44 61 69 6c 79  >00101 TAPE Daily< 000030 53 65 74 31 5f 30 31 0a
> 0c 0a 00 00 00 00 00 00  >Set1_01.........< 000040 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00  >................< 000050 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00  >................< 000060
> root@hawk:/crc/backs/myob/amanda/DailySet1/slot1#
>
> But if you look at the next one, the first real backup file,
> starting at about 0x190 or so...
>
Mine, when running 3.3.7p1 on wheezy, had this good header in every 
vtape "header"

> root@amanda2:/var/amanda/vtapes/slot1# od -N 544 -A x -t x1z -v
> 00001.localhost._root.0 000000 41 4d 41 4e 44 41 3a 20 53 50 4c 49 54
> 5f 46 49  >AMANDA: SPLIT_FI< 000010 4c 45 20 32 30 31 39 30 35 32 37
> 31 33 30 38 34  >LE 2019052713084< 000020 35 20 6c 6f 63 61 6c 68 6f
> 73 74 20 2f 72 6f 6f  >5 localhost /roo< 000030 74 20 20 70 61 72 74
> 20 31 2f 2d 31 20 20 6c 65  >t  part 1/-1  le< 000040 76 20 30 20 63
> 6f 6d 70 20 2e 67 7a 20 70 72 6f  >v 0 comp .gz pro< 000050 67 72 61
> 6d 20 2f 62 69 6e 2f 74 61 72 0a 4f 52  >gram /bin/tar.OR< 000060 49
> 47 53 49 5a 45 3d 34 30 0a 4e 41 54 49 56 45  >IGSIZE=40.NATIVE<
> 000070 2d 43 52 43 3d 32 61 61 38 62 32 65 35 3a 34 30 
> >-CRC=2aa8b2e5:40< 000080 39 36 30 0a 43 4c 49 45 4e 54 2d 43 52 43 3d
> 37  >960.CLIENT-CRC=7< 000090 66 36 30 33 61 32 66 3a 39 35 33 31 0a
> 53 45 52  >f603a2f:9531.SER< 0000a0 56 45 52 2d 43 52 43 3d 37 66 36
> 30 33 61 32 66  >VER-CRC=7f603a2f< 0000b0 3a 39 35 33 31 0a 44 4c 45
> 3d 3c 3c 45 4e 44 44  >:9531.DLE=<<ENDD< 0000c0 4c 45 0a 3c 64 6c 65
> 3e 0a 20 20 3c 70 72 6f 67  >LE.<dle>.  <prog< 0000d0 72 61 6d 3e 47
> 4e 55 54 41 52 3c 2f 70 72 6f 67  >ram>GNUTAR</prog< 0000e0 72 61 6d
> 3e 0a 20 20 3c 64 69 73 6b 3e 2f 72 6f  >ram>.  <disk>/ro< 0000f0 6f
> 74 3c 2f 64 69 73 6b 3e 0a 20 20 3c 6c 65 76  >ot</disk>.  <lev<
> 000100 65 6c 3e 30 3c 2f 6c 65 76 65 6c 3e 0a 20 20 3c  >el>0</level>.
>  << 000110 61 75 74 68 3e 42 53 44 54 43 50 3c 2f 61 75 74 
> >auth>BSDTCP</aut< 000120 68 3e 0a 20 20 3c 63 6f 6d 70 72 65 73 73 3e
> 46  >h>.  <compress>F< 000130 41 53 54 3c 2f 63 6f 6d 70 72 65 73 73
> 3e 0a 20  >AST</compress>. < 000140 20 3c 72 65 63 6f 72 64 3e 59 45
> 53 3c 2f 72 65  > <record>YES</re< 000150 63 6f 72 64 3e 0a 20 20 3c
> 69 6e 64 65 78 3e 59  >cord>.  <index>Y< 000160 45 53 3c 2f 69 6e 64
> 65 78 3e 0a 20 20 3c 64 61  >ES</index>.  <da< 000170 74 61 70 61 74
> 68 3e 41 4d 41 4e 44 41 3c 2f 64  >tapath>AMANDA</d< 000180 61 74 61
> 70 61 74 68 3e 0a 3c 2f 64 6c 65 3e 0a  >atapath>.</dle>.< 000190 45
> 4e 44 44 4c 45 0a 54 6f 20 72 65 73 74 6f 72  >ENDDLE.To restor<
> 0001a0 65 2c 20 70 6f 73 69 74 69 6f 6e 20 74 61 70 65  >e, position
> tape< 0001b0 20 61 74 20 73 74 61 72 74 20 6f 66 20 66 69 6c  > at
> start of fil< 0001c0 65 20 61 6e 64 20 72 75 6e 3a 0a 09 64 64 20 69 
> >e and run:..dd i< 0001d0 66 3d 3c 74 61 70 65 3e 20 62 73 3d 33 32 6b
> 20  >f=<tape> bs=32k < 0001e0 73 6b 69 70 3d 31 20 7c 20 2f 62 69 6e
> 2f 67 7a  >skip=1 | /bin/gz< 0001f0 69 70 20 2d 64 63 20 7c 20 2f 62
> 69 6e 2f 74 61  >ip -dc | /bin/ta< 000200 72 20 2d 78 70 47 66 20 2d
> 20 2e 2e 2e 20 0a 0c  >r -xpGf - ... ..< 000210 0a 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00  >................< 000220
> root@amanda2:/var/amanda/vtapes/slot1#
>
> And similarly for 3.3.9-5:
>
> root@hawk:/crc/backs/myob/amanda/DailySet1/slot1# od -N 0x270 -A x -t
> x1z -v 00001.hawk.localdomain._home_charles_projects.1 000000 41 4d 41
> 4e 44 41 3a 20 53 50 4c 49 54 5f 46 49  >AMANDA: SPLIT_FI< 000010 4c
> 45 20 32 30 31 39 30 34 31 32 30 30 30 31 30  >LE 2019041200010<
> 000020 31 20 68 61 77 6b 2e 6c 6f 63 61 6c 64 6f 6d 61  >1
> hawk.localdoma<
>
> ...
>
> 0001b0 3e 0a 20 20 3c 64 61 74 61 70 61 74 68 3e 41 4d  >>. 
> <datapath>AM< 0001c0 41 4e 44 41 3c 2f 64 61 74 61 70 61 74 68 3e 0a 
> >ANDA</datapath>.< 0001d0 3c 2f 64 6c 65 3e 0a 45 4e 44 44 4c 45 0a 54
> 6f  ></dle>.ENDDLE.To< 0001e0 20 72 65 73 74 6f 72 65 2c 20 70 6f 73
> 69 74 69  > restore, positi< 0001f0 6f 6e 20 74 61 70 65 20 61 74 20
> 73 74 61 72 74  >on tape at start< 000200 20 6f 66 20 66 69 6c 65 20
> 61 6e 64 20 72 75 6e  > of file and run< 000210 3a 0a 09 64 64 20 69
> 66 3d 3c 74 61 70 65 3e 20  >:..dd if=<tape> < 000220 62 73 3d 33 32
> 6b 20 73 6b 69 70 3d 31 20 7c 20  >bs=32k skip=1 | < 000230 2f 62 69
> 6e 2f 67 7a 69 70 20 2d 64 20 7c 20 2f  >/bin/gzip -d | /< 000240 62
> 69 6e 2f 74 61 72 20 2d 78 70 47 66 20 2d 20  >bin/tar -xpGf - <
> 000250 2e 2e 2e 20 0a 0c 0a 00 00 00 00 00 00 00 00 00  >...
> ............< 000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> >................< 000270
> root@hawk:/crc/backs/myob/amanda/DailySet1/slot1#
>
> It makes sense that the restore instruction is absent from that first
> file. It is a "header", and so there is nothing in it to restore.
>
> I did not test the instructions.



Copyright 2019 by Maurice E. Heskett
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to