View Issue Details

IDProjectCategoryView StatusLast Update
0000367bareos-corefile daemonpublic2014-12-08 09:29
Reporterirekpias Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionnot fixable 
Product Version14.2.1 
Summary0000367: Strange file restoration: File with ~ was restore with full name in windows 2008
DescriptionA made full backup on widnows 2008 client. Then, for tests made some incremental backup. Then for testes i ran for restoration whole folder. Then count files and folder, one file was missing ! From backup was 16 678 files but in source location there was 16 679 files. So bareos was missed one file.

After some time of investigation i found what happened: Bareos was backup this file: Roczne~1.XLS AS Roczne zestawienie wyników dla odzysku za rok 2008.xlsx

So what happened ?

I added screen from my widnows 2008 File explorer. For me it is bug. Bareos-client should bacukp everything as is in file system.
Additional InformationScreen added
TagsNo tags attached.

Activities

irekpias

irekpias

2014-11-21 16:25

reporter  

Bareos-strange-restoration.png (162,477 bytes)   
Bareos-strange-restoration.png (162,477 bytes)   
pstorz

pstorz

2014-11-25 10:33

administrator   ~0001077

Interesting problem. I don't understand why you even see the DOS-8.3 Name of the file.


Could you please run the fd with a high debug level of 450 and send the output? (bareos-fd.trace)

You find how to do it described here:

http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-26400025.2
( Dealing with Windows Problems) in the docs.

I think it might make sense that you alter your fileset to only backup the directory where the file in question resides.

best regards,

Philipp
pstorz

pstorz

2014-11-25 10:33

administrator   ~0001078

See note
irekpias

irekpias

2014-11-25 15:42

reporter   ~0001080

Ok. I will, i need only some more time. I will do it for 2 days, in the friday 29.11.2014.
irekpias

irekpias

2014-11-28 09:00

reporter   ~0001081

Hi. I modified regkey for bareos-fd on my win2008 server, but file c:\bareos-fd.trace has 0 KB. Nothing was wrote to this file, during my tests.
pstorz

pstorz

2014-11-28 09:24

administrator   ~0001082

Did you restart the bareos-fd service?
irekpias

irekpias

2014-11-28 09:33

reporter  

bareos-fd.trace (195,454 bytes)
irekpias

irekpias

2014-11-28 09:33

reporter   ~0001083

Ups. My fault. Bareos-fd.tarce uploaded.
irekpias

irekpias

2014-12-07 13:37

reporter   ~0001101

Any info about this issue ?
pstorz

pstorz

2014-12-07 18:03

administrator   ~0001102

I cannot see any problem: you backed up 22 files and 22 files were recovered.

backup:

zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Azotany-bias 2007+pods. kontr. jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Azotyny-bias 2007+pods. kontr. jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/chlorki-bias 2007+pods. kontr. jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Kontrola jakości-podsumowanie-roczna statystyka.xlsx
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/ROCZNE~1.XLS
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/ROCZNE~2.XLS
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Twardość-bias 2007+pods. kontr.jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Roczne zestawienie wyników dla odzysku- za rok 2008.xlsx
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/ROCZNE~1.XLS
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Azotany-bias 2007+pods. kontr. jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Azotyny-bias 2007+pods. kontr. jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/chlorki-bias 2007+pods. kontr. jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Kontrola jakości-podsumowanie-roczna statystyka.xlsx
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/ROCZNE~1.XLS
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/ROCZNE~2.XLS
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Archiwum/Twardość-bias 2007+pods. kontr.jak. 2006.xls
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/Roczne zestawienie wyników dla odzysku- za rok 2008.xlsx
zeus-fd: findlib/find_one.c:954-0 File ----: D:/Test/ROCZNE~1.XLS

restore
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Azotany-bias 2007+pods. kontr. jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Azotyny-bias 2007+pods. kontr. jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/chlorki-bias 2007+pods. kontr. jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Kontrola jakości-podsumowanie-roczna statystyka.xlsx create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/ROCZNE~1.XLS create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/ROCZNE~2.XLS create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Twardość-bias 2007+pods. kontr.jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/ create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Roczne zestawienie wyników dla odzysku- za rok 2008.xlsx create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/ROCZNE~1.XLS create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/ create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Azotany-bias 2007+pods. kontr. jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Azotyny-bias 2007+pods. kontr. jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/chlorki-bias 2007+pods. kontr. jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Kontrola jakości-podsumowanie-roczna statystyka.xlsx create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/ROCZNE~1.XLS create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/ROCZNE~2.XLS create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/Twardość-bias 2007+pods. kontr.jak. 2006.xls create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Archiwum/ create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/Roczne zestawienie wyników dla odzysku- za rok 2008.xlsx create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/ROCZNE~1.XLS create_file status=3
zeus-fd: filed/restore.c:574-0 Outfile=D:/BareosRestore/D/Test/ create_file status=3



I guess you get confused by the 8.3 naming of your files. What filesystem are you using?

Today you should never see the 8.3 naming on windows I guess.

When multiple files begin with the same longname, the 8.3 naming shows

FILENAME~1 until FILENAME~2 and so on. If you remove file number one, I am quite sure that file number two will then be called FILENAME~1 in 8.3 Name.

I am quite sure that you are confused by the 8.3 naming.

Otherwise please create a fileset where you can show that a file was recovered under a differnt name that it was saved as.
irekpias

irekpias

2014-12-07 22:08

reporter   ~0001103

From bconsole

list files jobid=75

 D:/Test/Archiwum/
 D:/Test/Archiwum/Azotany-bias 2007+pods. kontr. jak. 2006.xls
 D:/Test/Archiwum/Azotyny-bias 2007+pods. kontr. jak. 2006.xls
 D:/Test/Archiwum/chlorki-bias 2007+pods. kontr. jak. 2006.xls
 D:/Test/Archiwum/Kontrola jakości-podsumowanie-roczna statystyka.xlsx
 D:/Test/Archiwum/Twardość-bias 2007+pods. kontr.jak. 2006.xls
 D:/Test/Archiwum/ROCZNE~1.XLS
 D:/Test/Archiwum/ROCZNE~2.XLS
 D:/Test/
 D:/Test/Roczne zestawienie wyników dla odzysku- za rok 2008.xlsx
 D:/Test/ROCZNE~1.XLS

As You can see - there are 11 entries. When i restored all files from this backup job i have in bconsole 12 files marked (one additional entry for D: letter). And i ran restore.

After that i noticed one file was missing. So bareos doesn't restored what backed up. I ran restore as target linux machine - centos 5.11 (in original this is Win2008 x86_64). To see any diffs. And yes, all files were restored - 11 files + on file more(D: directory).

Then i made test with pea zip archiver and restores to this Win2008 machine. One file was missing, when i use command from context menu: "Extract here (in new folder)". But, when I use drag and drop from pea zip, all files are restored properly.

From my point of view there must be something like a bug, what prevents from restores files in format 8.3 saved with ~ when use internal windows function. So bareos clients suffers from that.

So bug isn't in bareos client itself, but in low level windows functions.

Very strange behaviour and dangerous ( in some rare issues).
pstorz

pstorz

2014-12-08 09:29

administrator   ~0001104

It is not normal that you have those 8.3 filenames at all.

You must be using some software that is so old that it only knows dos filenames.

And as you say yourself, other archive software shows the same behaviour.

I am quite sure that it is not the case that bareos does not restore what was backed up, but windows maps two files restored to the same filename, which leads to overwriting the already recovered file.

So if you only mark the file for restore in bareos which you also restored manualy with peazip, it will for sure also work.

So you run into the limitations of the 8.3 filename mappping in windows.

You should really get rid of the 8.3 filenames and the software that creates them or removes the long ones.

As you yourself admit that it is not a bug in baroes, I will close the issue now.

Issue History

Date Modified Username Field Change
2014-11-21 16:25 irekpias New Issue
2014-11-21 16:25 irekpias File Added: Bareos-strange-restoration.png
2014-11-25 10:18 pstorz Assigned To => pstorz
2014-11-25 10:18 pstorz Status new => assigned
2014-11-25 10:33 pstorz Note Added: 0001077
2014-11-25 10:33 pstorz Note Added: 0001078
2014-11-25 10:33 pstorz Status assigned => feedback
2014-11-25 10:34 pstorz Severity major => minor
2014-11-25 15:42 irekpias Note Added: 0001080
2014-11-25 15:42 irekpias Status feedback => assigned
2014-11-28 09:00 irekpias Note Added: 0001081
2014-11-28 09:24 pstorz Note Added: 0001082
2014-11-28 09:33 irekpias File Added: bareos-fd.trace
2014-11-28 09:33 irekpias Note Added: 0001083
2014-12-07 13:37 irekpias Note Added: 0001101
2014-12-07 18:03 pstorz Note Added: 0001102
2014-12-07 22:08 irekpias Note Added: 0001103
2014-12-08 09:29 pstorz Note Added: 0001104
2014-12-08 09:29 pstorz Status assigned => closed
2014-12-08 09:29 pstorz Assigned To pstorz =>
2014-12-08 09:29 pstorz Resolution open => not fixable