 |
|
 |
Dear Mr. Ozgur Ozcitak
I have a big problem with your "Backup Reader" tool and it is, when I open a large backup file that is created by Windows Backup Software and has 10GB in Large. An error has shown as below :
"Exception of type 'system.outofMemoryException' was thrown".
Please help me to solve it. If you have any question about this problem or anything else please do not hesitate and contact me with this email : "ghassemiyashar@gmail.com"
Sincerely Yours,
Yashar Ghassemi
|
|
|
|
 |
|
 |
Hi,
Can I use this code to read SQL SERVER BACKUP Files (*.bck)?
|
|
|
|
 |
|
 |
if it works, can you not post a executable for this?
if compiling is necessary, what are the steps to do such?
Thank you,
ananon
|
|
|
|
 |
|
 |
Is it compatible with Veritas BKF Structure? What code change I need to do it make it work for the VVeritas BKF structure?
|
|
|
|
 |
|
 |
Veritas BKF format is based on the Microsoft Tape Format, so they should be compatible. But I haven't tested any BKF files.
|
|
|
|
 |
|
 |
It fail after reading the set....
|
|
|
|
 |
|
 |
I tried to compile and receive the following error:
"Exception System.IndexOutOfRangeException was thrown in debuggee:
Index was outside the bounds of the array.
SetKeyName()
InitializeComponent() - e:\util\BackupReader_src\BackupReader\frmMain.Designer.cs:117,13
.ctor() - e:\util\BackupReader_src\BackupReader\frmMain.cs:18,13
Main() - e:\util\BackupReader_src\BackupReader\Program.cs:17,13"
I'm using the .NET framework 3.0, Win XP sp2
SharpDevelop compiler
Any suggestion? Or anybody has the executable?
|
|
|
|
 |
|
 |
I ran into this same problem.
The 16x16 icon images for the tree view of the catalog are not not properly resolved when the main form is initialized.
One quick way to hack past this is to comment out the bottom 5 lines in this snippet from frmMain.Designer.cs:
this.ýmageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ýmageList1.ImageStream")));
this.ýmageList1.TransparentColor = System.Drawing.Color.Transparent;
this.ýmageList1.Images.SetKeyName(0, "Disk");
this.ýmageList1.Images.SetKeyName(1, "Tape");
this.ýmageList1.Images.SetKeyName(2, "Volume");
this.ýmageList1.Images.SetKeyName(3, "Folder");
this.ýmageList1.Images.SetKeyName(4, "File");
A better way to fix this is to find 5 moderately applicable 16x16 icons and add them to to ImageList1 in frmMain.
|
|
|
|
 |
|
 |
I’m using ntbackup.exe as a process in my application to backup some files and then your class for restoring the data.
Everythibg is ok if I run my application(in C#) from my hard disks, but I have to deploy my application on flash memoty
And when I run my application from the flash memory ntbackup.exe works well and backups the files successfully but after finishing the backup process my application does not work properly and I got this error from different part of my application ( when I want to show a new form in the form initializecomponent() method)
************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at System.IO.UnmanagedMemoryStream.ReadByte()
at System.IO.BinaryReader.ReadByte()
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture)
at BaseMVC.BaseMVCResource.get_View()
at BaseMVC.Browser.BrowserFrm.InitializeComponent()
I searched a lot but I could not find a solution (even I wrote the Application.DoEvents() in my code but it does not work)
I’d be thankful if you can guid me?
FYI,I copied the ntbackup.exe on my flashdisk and it does not work properly there either ?!
Thanks in advance,
Saeideh
|
|
|
|
 |
|
 |
Hi,
Can I use this code to read SQL SERVER BACKUP Files (*.bck)?
Does MTF for SQL BACKUP Files is the same MTF for NTbackup utility?
Is there any simple way to change the above code for reading SQL Backup MTF files?
Thnks!
DS
|
|
|
|
 |
|
|
 |
|
 |
What is the license type of this project ?
|
|
|
|
 |
|
 |
You are free to use/modify/distribute it in whatever way you like. But, if you are going to use it in a real world application, I suggest that you fix the file extraction code. As discussed below, it may lead to bugs/performance issues.
|
|
|
|
 |
|
 |
hi
look at the contructor of CDataStream. you cast Header.StreamLength to an int value which can lead to a bug.
Data = Reader.ReadBytes((int)Header.StreamLength);
|
|
|
|
 |
|
 |
Right. Header.StreamLength is an unsigned long. I am using a BinaryReader which can handle data up to 2 GB if I recall correctly. If the file data is larger than that, it will certainly cause a bug. Actually, reading the entire file data into memory is not a good idea at all. This part of the code requires a major revision. Instead of reading the entire file, I should probably just get the offset to file data, and write that data to disk when required.
Thanks for pointing that out. I will fix that in a future release when I have some free time.
|
|
|
|
 |
|
 |
Öncellikle Türkçe yazdığım için kusura bakma. Yazdığın program gerçekten çok işime yaradı. Yanlız System State (Domain Controller) yedeğini okurken %91'de devamlı takılıyor. Bu konu hakkına birseyler yapabilirmisin?
-- modified at 8:04 Tuesday 24th April, 2007
|
|
|
|
 |
|
 |
Kendi bilgisayarimda denedigimde System State yedegini sonuna kadar okudu. Debug ederek nerede ve neden takildigini soyleyebilir misin?
|
|
|
|
 |
|
 |
Tekrar Merhaba, Windows 2003 Active Directory backup'ını okurken "Active Directory" , "SYSVOL" ve "registery" kayıtlarını okumuyor. Yazılımcı bir arkadaşım bu yukarıda bahsettiğim dizinlerle ilgili programda tanımlama yapılmadığını ve bu yüzden reader okurken bu kayıtlara gelince takıldığını soyluyor. Normal system state bkf dosylarını reader okuyor ve extract edebiliyor. Sanki Active directory ile ilgili block type'lar eksik gibi.
Debug yatım ve cbackupstream.cs EBlockType et = (EBlockType)ReadUInt32(); da takılıyor gibi.
Okuması gereken block'lar
Active Directory
Boot Files
COM+ Class Registration Database
Registery
SYSVOL
|
|
|
|
 |
|
 |
The sample code was useful.
How will it be good to implement backup of a file?
|
|
|
|
 |
|
 |
I wrote this utility to recover some corrupt backup files. Writing backup files was not a goal. I may look into that in the future if I have the time.
|
|
|
|
 |
|
 |
Excellant Code! Just what I needed!
|
|
|
|
 |
|
 |
Thanks Ozgur for this utility,
I was looking for something similar that traverses inside the backup files etc.
And your article came just-in-time for me.
Cheers,
|
|
|
|
 |
|
 |
I am glad you found it useful.
Cheers,
Ozgur
|
|
|
|
 |