![]() |
![]() OCAU News - Wiki - PC Database - QuickLinks - Job Search - Pix - Sponsors |
|
|||||||
|
Sign up for a free OCAU account and this ad will go away! |
![]() |
|
|
Thread Tools |
|
|
#1 | |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
If you have experienced a thunderstorm induced spike that gives a folding checksum error and causes the client to restart at 0; or a power outtage to the same effect; or if you have lost work by an early unit end or other error because of a too aggressive overclock, etc, wouldn't it be nice to be able to restore the wu to its last good checkpoint?
The following dos batch file saves in real time the contents of 2 clients (2 instances hyperthreading) at 8 previous points. Quote:
The routine was originally written by a bloke nicknamed BorisBorf and posted at the folding community forum. Once set up as a working batch file, use the windows task scheduler to run it every hour, 1/2 hour or whatever else you choose. I have scheduled i to run at every 1/2 hour. The routine copies the client folders specified in the xcopy lines to C:\Program Files\FAHBACK\1...\2...\3...etc such that \1 contains a copy of each of two folders at the last backup time, \2 30 min earlier, etc. Initially I was concerned that the routine itself mught induce a checksum error into the backed up folders, but so far my testing does not indicate any problem. Feel free to use it, modify it or ignore it. All my clients are set to ask before connecting to the network, so that an early unit end wu is not just automatically sent, giving me the opportunity to restore that unit. If I suspect that the problem was caused by a too agressive o/c, I step back the overclock, restore the wu, and finish normally, sometimes saving 70, 80, 90% of completed work. I'll happily answer any question that I can. It works.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood Last edited by ezee; 10th March 2005 at 10:49 PM. |
|
|
|
|
|
|
#2 | |
|
Member
Join Date: Apr 2003
Location: Swan Hill Vic
Posts: 578
|
Quote:
ezee if my F@H client is in:C:\F@H1 should I change your the xcopy line to refelect where my client is I don't have a CLUE on anything DOS but will work it out,with some help. Also i know that you have to open a command prompt to type all the stuff in,but how do you save it when you get to the end of the script,so that it is right. ,and will work.
__________________
Folding@Home 80000 Points Milestone Successful Trades: Minidisc,Felony,2QIK4U,Coolmatt,pyr0x,Cathar,MnM,C hoppa,necrodon,balckjok3r,Lombers,branko,the _rick,SH2004,Harbx,Globe,tagrobert,bob(nz),ViperAM D,booj,kr0k, petal666,hourpung,Loop Goose,dark_dragon100,atmo,slyls1,Syvirus |
|
|
|
|
|
|
#3 | |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
Quote:
All my folding files are in C: \Progam Files This routine creates a new Folder, FAHBack, also within Program Files with a set of subfolders, 1,2,3,4,5,6,7and 8 . C:\Program Files\FAHBACK\1 contains a copy of the folder containing each of my active folding clients. C:\Program Files\FAHBACK\2 contains each folding client folder as at 1/2 hour prior to C:\Program Files\FAHBACK\1. Modify it to suit where you wish the files to be located. After the echo commands, the commands are very simple. cd = change directory. rd= remove directory. ren = renumber If you wish the FAHBack directory along with your folding clients to be in C: and not in C:\Program Files , then delete all references to Program Files\. Use notepad to edit the script. Short answer to your question is yes. Believe me, I also have little recent experience with DOS and had to stretch my memory back to pre-windows and pre mouse days.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood |
|
|
|
|
|
|
#4 |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
Additional notes.
If you do not have your clients set to ask before sending back wu's or receiving new work units, this routine will be useless. It does you no good to restore a wu that has already been returned to Stanford. This routine only gives me 8 supplementary backup points (4 hours when run every 1/2 hour) Cole's original was set to make 48 back-up points. Add more by adding another ren line and increasing the rd operator by 1. You may need more if you don't notice a problem wu within the maximum backup cycle. ie, for me, the current folding folder will be copied every 1/2 hour so that if I don't notice if for more than 4 hours, every supplememtary backup point will be a copy of the wu in its problem state.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood |
|
|
|
|
|
#5 |
|
Member
Join Date: Jul 2004
Location: Gold Coast
Posts: 1,150
|
awesome.
|
|
|
|
|
|
#6 | |
|
Member
Join Date: Jan 2002
Location: Northern Brisvegas (4037)
Posts: 3,242
|
Quote:
RD also = REMDIR CH also = CHDIR Reading the file below, it looks like he's got it arse-about - he's renaming a directory that doesn't exist then copies files to it. It seems you'd need to first create a backup directory or move the xcopy commands before the rename commands...
__________________
Proud to be part of the OCAU FOLDING Team Folding@Home 150K Club Member Folding@Home 8,000,000 Point Milestone OCAU Hall of Fame member I think if we were doing Bio-terrorism@Home, it wouldn't be that popular - Vijay S Pande Last edited by petercr; 13th March 2005 at 8:06 PM. |
|
|
|
|
|
|
#7 | |
|
Member
Join Date: Apr 2003
Location: Swan Hill Vic
Posts: 578
|
Quote:
__________________
Folding@Home 80000 Points Milestone Successful Trades: Minidisc,Felony,2QIK4U,Coolmatt,pyr0x,Cathar,MnM,C hoppa,necrodon,balckjok3r,Lombers,branko,the _rick,SH2004,Harbx,Globe,tagrobert,bob(nz),ViperAM D,booj,kr0k, petal666,hourpung,Loop Goose,dark_dragon100,atmo,slyls1,Syvirus |
|
|
|
|
|
|
#8 |
|
Member
Join Date: Jan 2002
Location: Northern Brisvegas (4037)
Posts: 3,242
|
Pretty much like I said...
rem echo off cls echo The FAH Backup System v1.2b echo By BorisBorf (Cole Montgomery) echo CBD Folding (#36974) echo http://cole.montgomery.spymac.net/fah/ echo Configure to your liking! echo A hint: Use Notepad's Edit->Replace feature! Ctrl+H cd "C:\Program Files" rd "C:\Program Files\FAHBACK\8" /s /q xcopy "C:\Program Files\Folding@Home\*.*" /e "C:\Program Files\FAHBACK\1\FAH\*.*" xcopy "C:\Program Files\Folding@Home2\*.*" /e "C:\Program Files\FAHBACK\1\FAH2\*.*" ren "C:\Program Files\FAHBACK\7" 8 ren "C:\Program Files\FAHBACK\6" 7 ren "C:\Program Files\FAHBACK\5" 6 ren "C:\Program Files\FAHBACK\4" 5 ren "C:\Program Files\FAHBACK\3" 4 ren "C:\Program Files\FAHBACK\2" 3 ren "C:\Program Files\FAHBACK\1" 2 cls exit Here's what it does (apart from echoing messages and clearing the screen)... changes to the Program Files directory then deletes the 8th backup directory. Xcopy allows you to copy to a directory and create a new one at the same time (if it doesn't exist), you're doing this twice if you run hyperthreading. It then incrementally renames the backup directories so that '1' is the freshest. EDIT: if you're not using HT then skip the second xcopy command and you can have up to 8 backups...
__________________
Proud to be part of the OCAU FOLDING Team Folding@Home 150K Club Member Folding@Home 8,000,000 Point Milestone OCAU Hall of Fame member I think if we were doing Bio-terrorism@Home, it wouldn't be that popular - Vijay S Pande Last edited by petercr; 13th March 2005 at 8:07 PM. Reason: fixed grammatical errors |
|
|
|
|
|
#9 |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
Well Peter,
You are almost correct. Relocating the xcopy commands as you suggest will not give 8 back-up points, but will give 7 with a copy \2 thru \8. Each iteration creates a \1 folder and the proceeds to remane it as \2. Your latest backup will end in \2. If you want to have 8 with the latest in \1, then move the xcopy commands back to their original location. As originally drafted the first run will produce only a \1 folder, the 8th run and later will fill \1 thru \8.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood Last edited by ezee; 13th March 2005 at 8:05 PM. |
|
|
|
|
|
#10 |
|
Member
Join Date: Jan 2002
Location: Northern Brisvegas (4037)
Posts: 3,242
|
But the first (the xcopy) is actually a copy of your active data so technically that's 8... (there's 7 renames).
__________________
Proud to be part of the OCAU FOLDING Team Folding@Home 150K Club Member Folding@Home 8,000,000 Point Milestone OCAU Hall of Fame member I think if we were doing Bio-terrorism@Home, it wouldn't be that popular - Vijay S Pande |
|
|
|
|
|
#11 |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
Ohhh, and what exact is in \1 after you rename it \2?
7 backup points \2 thru \8, technically 7.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood |
|
|
|
|
|
#12 |
|
Member
Join Date: Sep 2004
Location: Geelong
Posts: 214
|
I don't use DOS as much as I used to
but it looks to me that ezee has 8 directories with backups & petercr has 7... In the interest of accuracy, I just tried both formats and the one with the xcopy command at the end (ezee's) is correct and leaves directories from 1 to 8, the other (petercr's) leaves directories 2 to 8 Either will give you a decent margin of error though, if you are at your computer regularly enough to catch an error or allow it to send a WU without losing too much time.
__________________
4,000,000 Points Milestone | Addicted to folding club member #63 | Folding as vicbt |
|
|
|
|
|
#13 | |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
Quote:
I salvaged 85% of a 122 pt dgromac last night (it suffered a checkpoint error when I had what must have been a brownout.) I reckon this will save me 100-500 points per week, based on earlier difficulties.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood |
|
|
|
|
|
|
#14 |
|
Member
Join Date: Nov 2003
Location: Clareville NSW
Posts: 1,403
|
Tip: Scheduled tasks in Win XP will not run unless you have a login password set and repeat your password in the new scheduled task properties.
__________________
GrumpyOldMen, OCAU Addicted to Folding Club, Member #69 Remember the Battle of Brisbane! I'm just a soul whose intentions are good. O Lord! Please don't let me be misunderstood |
|
|
|
|
|
#15 | |
|
Member
Join Date: Oct 2003
Location: Birkdale
Posts: 354
|
I guess this would be good for a situation like this...
Quote:
__________________
Folding for Team_Bris Succesful trades: DTG, davo_rulz, syxx, Soulblade, MrShadow, fry, doogs2590, B£å¢kÐðg, psylink (x2), dukkie, 1234, VinnY, Retribution, Suicidal |
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|