Pages: [1]   Go Down
Author Topic: Lost my files. And now?  (Read 1044 times)
0 Members and 1 Guest are viewing this topic.
Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Mechanical Engineering student.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did a work for physics using arduino one year ago.
Mean while I changed computer ('cause my old one broke) and I lost my arduino files that were on the computer.
However my arduino is still programed and if I open the Serial Monitor it still do what I asked it to do.
But I don't know how to acess the file, I mean, how can I do to "download" the "script" that's on my arduino and put it on my computer so I can change it?
  smiley-confuse
I hope you understand what I'm saying, since english is not my native language.  smiley-sad-blue

Thanks
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't recover your original source code from the Arduino. It is possible to retrieve the compiled executable file, using avrdude, but you can't then convert that back to a sketch. I think you're going to have to rewrite it.
Logged

Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Mechanical Engineering student.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, ok.  smiley-confuse
Thanks!
Logged

Maine
Offline Offline
Sr. Member
****
Karma: 14
Posts: 417
Caution: Explosives in use.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You might want to look into an off-site backup solution, like Carbonite or Crashplan. Or if you don't have a lot of data, Google Drive will let you store 5gb for free.
Logged

"Anyone who isn't confused really doesn't understand the situation."

Electronic props for Airsoft, paintball, and laser tag -> www.nightscapetech.com

New Jersey
Offline Offline
Faraday Member
**
Karma: 65
Posts: 3638
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or post the finished code in the exhibition section of the site  smiley-razz
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How much work will it be to rewrite the code?
Logged


Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Mean while I changed computer ('cause my old one broke)

What was broken on the computer?
If you still have the device you can try to mount is as an external disk to a linux system to see if data can be recovered.

Don't you know a "nerd" that can revive old disks/computers etc.?

You can also mail your sources to a 2nd gmail account. Lots of free storage and accessible from anywhere

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3360
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can also mail your sources to a 2nd gmail account. Lots of free storage and accessible from anywhere

Or better yet, just move your sketch folder into your Google Drive folder.
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can also mail your sources to a 2nd gmail account. Lots of free storage and accessible from anywhere

Or better yet, just move your sketch folder into your Google Drive folder.

I personally don't trust google so much. I always log out of any google account before performing a google search. They are for-profit company smiley-wink

Having a flash drive is all it takes.
Logged


California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3360
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

They are for-profit company smiley-wink

Who isn't now-a-days?
Logged

Ayer, Massachusetts, USA
Offline Offline
Edison Member
*
Karma: 53
Posts: 1832
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Having a flash drive is all it takes.
Not really, you need to think about a tiered support.  If files are really important, you want to keep generations of the file, so that you can go back to old versions if you accidently delete or corrupt the file (or make a major mistake in coding, and you want to undo those changes).  A RAID system won't help you here, as it will delete the file on all of the disks.  All a RAID system does is allow you to continue if you have a hard drive failure on one disk.  If you have a single flash drive that you just copy the current contents of your hard drive, it will be deleted there as well unless you noticed the file was deleted before doing the backup.

You also want to think about backups offsite in case your house burns down or somebody steals your computer and all of the flash drives that are sitting next to it.  Keeping a flash drive at work, and rotating the backups helps (as long as you backup early and backup often).   For smaller amounts of data, you can also use your cell phone.  As somebody else mentioned, posting the code to the playground is one way to get it backed up.

Obviously if you have sensitive information on your disks, you need to make sure all of the backups are encrypted.

Every so often, you want to test your backup procedures, to make sure the files are indeed being backed up.
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

MichaelMeissner,

Agreed! I usually keep folders such as 2012-12-07 with all my file backups. I keep adding more such folders until the drive is full, then milk rule applies. I only keep one backup of my pictures and videos.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
Every accomplishment starts with the decision to try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

take the hard drive out of your old computer and git it loaded on to your new computer
Logged

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1072
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You might want to look into an off-site backup solution, like Carbonite or Crashplan. Or if you don't have a lot of data, Google Drive will let you store 5gb for free.

Everything that I have in my "EE" folder (yeah, I am a hobbiest but I still call the folder EE) including thousands of PDF datasheets, 3 versions of Arduino, all my source code and many downloaded examples, etc, all fit on an 8GB memory stick.  That is my backup solution and it works fine.  There is no reason not to back this stuff up, it's usually smaller than a decent sized movie file.  You can easily keep multiple thumb drives and keep one offsite.

Not really, you need to think about a tiered support.  If files are really important, you want to keep generations of the file, so that you can go back to old versions if you accidently delete or corrupt the file (or make a major mistake in coding, and you want to undo those changes).

Install Visual Source Safe if you have a copy.  It's damn simple and the "database" is just a bunch of files themselves you can copy off to a thumb drive.
« Last Edit: December 07, 2012, 07:04:00 pm by JoeN » Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Pages: [1]   Go Up
Jump to: