Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to create a Backup Snapshot Image Of a System Drives (C, D E etc) by using C#.
i am not asking for Screen print but want to create backup of drives like we create iso images,
Any help in this regard would appriciate.
Posted

1 solution

In all seriousness, I wouldn't do it in C# - there are a number of packages out there which will do the job for you, and more importantly don't need you to install a full operating system and the .NET framework in order to restore the image as a C# solution would need you to do.

The one I use is AOMEI - it has a free version which will produce disk images and also allow you to access individual files from them if you need to. See here: http://www.codeproject.com/Messages/5109995/Free-backup-software.aspx[^]
 
Share this answer
 
Comments
Ravindranath_Kanojiya 28-Aug-15 11:21am    
Actually i want to do it programmatically, and want to very less depend on 3rd party.
Even If Solution is in Another programming language i would prefer that also.
OriginalGriff 28-Aug-15 11:31am    
The problem is more in using the stored image - you are going to have to sort out how you are going to use the data to do a restore, assuming you have no operating system to rely on (since if your disk fails, the new disk won't contain an OS at all).

So start looking at "minimal" operating systems, and what you can do with those (AOMEI uses WinPE, which might be a good start, but there are LINUX distros that can boot from CD / USB, so it's worth looking at those as well) - and then look at language - which probably means C++ as there isn't anything I know of which will boot the .NET framework from a thumb drive! So it makes sense to use Native C++ for the backup system as well, rather than C#

But personally, I wouldn't, unless you are trying to produce a commercial package: the effort you will put in will be massive compared to using a tried-and-tested off the shelf solution. And boy, are you going to have to test your solution rigourously - because if you need it, it's going to have to work first time! :laugh:
Ravindranath_Kanojiya 28-Aug-15 12:00pm    
Thanks for your suggestion. i really appreciate you for taking this topic for discussion.
There has to be a way for this.
Currently i am not looking it in terms of commercial use but as an R&D. I had this Question since my college days as now i have improved my knowledge and skill, now i want to Think on implementation part if it can be done no matter how much time it would take or what language i have to learn.
I know there are thousands of ready made solution for this, but i want to get in and explore how it can be done through programmatically.
I am so interested and searching a trace/ trail to start. I would be very thank full if i could get any startup point.
OriginalGriff 28-Aug-15 12:14pm    
I'd start out working out how to run a program from a bootable CD / USB - because until you can do that bit, the other bit is a waste of time (and it'll probably influence how you implement the backup part as well.)

Oh, and BTW: get a spare computer, and a couple of spare HDDs to try it on: you do NOT want to test this stuff on your development machine! :laugh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900