Lost source

Previous topic - Next topic

bigsofty

This does not happen very often at all and maybe specific to my setup.

I code upstairs and downstairs, both on a wireless network.

The source is on a media PC server, within a shared network folder. This works well, I can code anywhere in the house, the code stays centralised and backups are easy to control. I use a 300mbs wireless N network, which is fine for compiling across usually.

Last night, half way though a compilation, my network system broke connection, it reconnected. This happens very seldom but it does happen with the wireless network.

The glbasic editor seemed to be stuck, it came up with a lot of new errors in the source but compilation did not complete and when I tried to recompile or exit it said that it was still compiling. I waited to see if anything would happen, it did not.

I had to CTRL+ALT+DEL the process. I restarted GLB and read in my project, to my horror, only a few K of a 30K source was there, it was cut off.

I do a morning back up, so I got the source back but lost the days work, I will increase the amount of backups I do each day, just in case!

I should have written everything down at the time and made a better report. Sorry about that.

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

very strange. But I don't know what I could do here.

Slydog

#2
Sorry to hear about your lost work, and I can't think of anything to get that back.

But, in the future, have you tried 'dropbox'? (www.dropbox.com)

They give you 2Gb of free storage, which is continuously backed up.
You can see all previous versions of your files, even deleted files.

And you can sync multiple computers to the same account, so you can edit from anywhere.

Your files are located in a folder on your computer(s) and any changes are synced with your online account in the background, so you can loose your network connection and keep an editing, and once your connection is reestablished your changes will be synced.

I think they remember all file changes for 30 days, so you still may want to backup your projects every so often for a historical snapshot.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

MrTAToad

See if there is the backup file present from the last compile - hopefully you wont lose too much data if its present.

bigsofty

#4
GLBasic did not seem to know that the file was written incorrectly when it tried to save it. And because it was stuck in the compilation phase, I could not overwrite the file on the disk with the one in the editor.

Possibly do a simple file size check before compilation begins? Apart from that I am unsure, maybe automatic .BAK files for any modified source files?

Me get a better network? :P

@Slydog: Thank for that suggestion but my British Telecom net connection is made up of 2 cups and very long piece of string I think... very slow.

@MrTAToad: Nope, only my own one from the automatic backup server I have on the network, from earlier that day.

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Leginus

I once remember forgetting to backup my code when i worked at royal mail.  I lost a weeks work, and had that familiar sicky feeling when I realised.  To say my boss wasn't the happiest person on the planet is a bit of an understatment.
  :whistle:

Glad you managed to get back the morning's back up.  Lets hope you dont work too fast :)