Society of Robots - Robot Forum
Software => Software => Topic started by: airman00 on January 19, 2008, 10:02:53 PM
-
OK heres just a tip / reminder for all you guys on the forum.
Back up all your source code and important info you don't want to be deleted to a DVD or flash drive or a file storage place online
I just crashed Chives after tweaking the something BUT I was smart enough to backup everything on Chives before I tweak anything , so I have backups of every version of Chive's program. OK so after the crash I almost panicked and then I realized, hey i have backups! So I added the program again and got everything to run again in under 10 minutes , just uploaded the software and all done.
SO GET OFF YOUR BUTT AND GO BACK UP ALL YOUR SOURCE CODE AND DOCUMENTS TO SECURE STORAGE AREAS ( flash drive is what I use)
Hopefull I'll save some of you guys before its too late ;)
-
I wasn't so smart. About half a year back I lost over month of work :(
MAKE BACKUPS !!!!
-
i have a tip too, i made shell scripts to copy all my important stuff into another folder, you can also do the same but with batch files in windows, just a series of "cp here to_there" commands, this way you can just run the file for instant backups, or schedule it
-
I like the batch idea because I know how to write them :P I dont know how to write shell scripts :-\... yet :)
-
almost the same, except you must have "#!/bin/sh" on the first line and the file must have permission to be executed
-
really? Care to send me some sample programs to my email that I can study from? Thats how I learn best. Take something that works and tweak it and see what happens :P
-
I dont usually bother with backups and stuff, Ive only ever had 1 difficult time with an os not booting, but the data is still on the drive even if you cant get to it with your operating systems there are other ways of getting at it. Also ive taken with having most of my data on flash drives so i can use it on multiple pc's easily
The only things that i back up is web stuff which you should take your own responsibility for (even if the hosts are aupposed to back it up). I remember once an entire images directory going missing but everything else was intact, i presumed that they had to restore the site but the directory went missing from their backup. Luckily i had already done it.
-
In my case HD is completely unusable. First windows started to work slowly. After a while I restarted it twice. Third time i got "Operating System not found." Drive isn’t detected by BIOS anymore. Everything happened in less than an hour.
-
#!/bin/sh
sudo cp -f -u -r -v "/home/frank/Documents/" "/media/sda3/backups/"
sudo cp -f -u -r -v "/home/frank/eagle/" "/media/sda3/backups/"
sudo cp -f -u -r -v "/home/frank/Desktop/" "/media/sda3/backups/"
sudo cp -f -u -r -v "/home/frank/.wtf/" "/media/sda3/backups/"
sudo cp -f -u -r -v "/home/frank/.mozilla/firefox/pvwhp7lk.default" "/media/sda3/backups/firefox_profile/"
sudo cp -f -u -r -v "/home/frank/.mozilla-thunderbird" "/media/sda3/backups/thunderbird_profile/"
save that into a empty file, set permission to execute, and then execute it or link an launcher to it.
destination folders must exist.
-
what file type must I save it as? .bat?
-
A single backup is NOT good enough.
When I was about 8 years old I accidently overwrote this huge game I was programming on my Tandy. I was smart enough to have a backup, but on that particular day I decided to overwrite it with my newest program code.
Stupid me didn't realize that the newest update was broken!
Yeap, I just overwrote my backup with a bad copy . . .
But I was a pretty smart 8 year old . . . I had a secondary backup! bite you, Murphy (http://en.wikipedia.org/wiki/Murphy's_law)! hehe. Unfortunately, that secondary backup was a month old and missing tons of code . . . :'(
However a secondary backup still isn't good enough . . . I lived in louisiana and there was a flood in '93 that destroyed a lot of my stuff. So to my next point . . . put your backups OUTSIDE your home and in another location. A bank safety deposit box, your work office, a friends house, etc.
What if your house has a fire and your computer and everything in the house is destroyed? Exactly.
Backups I have for SoR:
online ftp
my laptop
my external harddrive
an off site cd in my office
And for my robot code, I even backup older versions of my code, dated and all . . . just in case . . . and its saved me several times too.
-
what file type must I save it as? .bat?
nope. that snippet is for running on some flavour of Unix not windows.
you wouldn't need to give it any particular filename extension but you would need to mark it as an executable file.
dunk.
-
online backups are good, a number of companies offer quite cheap online backup systems. most are automatic, of course the best thing for backing up your code is a good source control system... or even a bad one, going back to old code saves all of that commenting out 'just in case'
one little trick on a knacked hard drive that sometimes works, is find a usb-ide cable and put the drive on a bed of ice,(ice in a bag of course) this can sometimes give you a few extra minutes to find that data you were sure you had backed up...you just can't find right now ;-)
Dave,
-
what file type must I save it as? .bat?
you realize i run linux, right? hence why i use shell scripts and you use batch files.
it should be almost the same (i don't know about the switches/arguments), get rid of the first line and also delete all the "sudo"
-
Ι do also back up my files in my external hard disk but I also make and a DVD per year or so to be sure...
Most if not all of the stuff is on the internet so I do not worry much but I remember losing almost a years work when my previous hard disk auto erased (yep it was problematic but I got a new better one as insurance cover!!! hahaha)
And one year's work lost is not nice... just not nice... believe me!!!
Now my PC is my second hand and despite being a gamer I do need a good PC for Autocad, Sketch_up and now LightWave!!!
And believe me visual modelling is very hard.... so I better backup more offen but who has the time anyway?!?!?!
-
Time is for noobs :P
Im a gamer as well and have spent quite a pretty dollar on my computer to build (If your curious to the specs of it, shoot me a message) but I also use it for programming and SketchUp and such. Im not familiar with LightWave though. What is it?
And I dont really back up anything... cuz im just that smart... I prolly should huh? Ive got 2 internal HDDs, both are SATA drives. Ones a 300GB and ones an 80GB. Im gunna back up my important stuff :)
-
i guess we now have 3 gamers. 8)
i do solidworks and some media editing
160gb total. :'(
-
Lightwave is program for making video add motion in videos effects and other... But I resently got it and I don't know anything so google to see!!!
And a littlt off topic...
I'm going to buy a new PC... a really heavy one and I'm thinking of
Core2 Duo E6750
Asus P5K Prenium
2X Asus HD3870
and 4G RAM
What is your opinion???
-
Depending on what you plan to do with said machine, I think you should go with only 2Gbs because having 4 gigs when you only need like 1.5Gb max can slow your computer down rather than speed it up.
-
4gb is good, especially if youre going to be video editing. but beware that 32bit OS only can use 3.5gb
only disadvantage w/ 4gb ram is that it might not OC as good
-
ok then get 3.5GB ram ;D lol. and there i was thinking the more ram the better :-[. thx for the tip
-
Thanks for the answers guys!!!
4gb is good, especially if youre going to be video editing. but beware that 32bit OS only can use 3.5gb
only disadvantage w/ 4gb ram is that it might not OC as good
I read 4G is the max for OS32 and 128G for OS64...
But is 64 better that 32 or worse... Surely 64bit can eat up the memory fairly more quickly... And before buying I want to hear some opinions...
Also I heard Asus P5K has some problems with SATA2.... is that true???
Sorry for the off topic again...
Thanks a lot, Lefteris
-
www.extremeoverclocking.com
ask on the forum. search around too.
you can put 4gb in a 32bit system. windows just wont use more than 3.5gb
con about 64 bit is finding drivers for some stuff.