Monday, November 08, 2010 at 12:06 AM.


on backup (flstartup=false) {
		<<6/7/09; 7:12:43 AM by DW
	local (adrdata = webserver.apache.s3backup.init (), f, ct=0, startticks = clock.ticks ());
	adrdata^.stats.whenLastCheck = ();
	log2.add ("webserver.apache", "s3 backup started", "", startticks);
	on dofolder (folder) {
		local (f);
		fileloop (f in folder) {
			try {
				if file.isfolder (f) {
					dofolder (f)}
				else {
					try {
						<<scratchpad.f = f
						webserver.apache.s3backup.checkFile (f, flstartup, adrdata)}}}}};
	dofolder (adrdata^.prefs.folder);
	adrdata^.stats.ctSecsLastBackup = number ( () - adrdata^.stats.whenLastCheck);
	log2.add ("webserver.apache", "s3 backup complete", ct + " files checked.", startticks)};
bundle { //test code
	backup (false)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.