Monday, March 14, 2011 at 3:24 AM.
myServerFarmSuite.background.everyNight
<<Changes
<<3/14/11; 2:34:30 AM by DW
<<Upload the backed up stuff to S3.
<<11/29/10; 10:28:03 AM by DW
<<Clean-up of backup code.
<<11/29/10; 10:18:51 AM by DW
<<Call server-specific code.
<<11/9/10; 7:53:32 PM by DW
<<Update open tools.
<<11/6/10; 4:17:52 PM by DW
<<Make sure the Nightly Backup folder exists.
<<11/5/10; 8:52:36 PM by DW
<<Use myServerFarmSuite.getMyFolder to find our folder instead of hard-coding it.
<<10/9/10; 10:29:28 PM by DW
<<Add Apache conf files to backup.
<<9/21/10; 11:36:17 AM by DW
<<Created.
local (adrdata = myServerFarmSuite.init (), pc = file.getpathchar ());
bundle { //backup open databases
local (folder = myServerFarmSuite.getMyFolder () + "Nightly Backup" + pc);
file.surefilepath (folder + "xxx"); //11/6/10 by DW
on copyApacheConfFile (relpath) {
local (f = "C:\\Program Files\\Apache Software Foundation\\Apache2.2\\conf\\" + relpath);
if file.exists (f) {
file.copy (f, folder + file.filefrompath (f))}};
copyApacheConfFile ("httpd.conf");
copyApacheConfFile ("extra\\httpd-vhosts.conf");
filemenu.savecopyopendatabases (folder, 60, flsafecopy:true);
thread.callscript (@myServerFarmSuite.uploadFolderToS3, {folder})}; //3/14/11 by DW
bundle { //server-specific code, 11/29/10 by DW
myServerFarmSuite.serverSpecificCode ("everyNight")};
bundle { //update open tools, 11/9/10 by DW
myServerFarmSuite.updateOpenTools ()}
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.