Monday, November 08, 2010 at 12:02 AM.
system.verbs.builtins.fileSynch.backup
local (folder = user.fileSynch.synchPoints.["Amazon S3"].prefs.folder); local (pc = file.getpathchar ()); folder = folder + "backups" + pc; if not defined (scratchpad.filesynchbackupserialnum) { scratchpad.filesynchbackupserialnum = 0}; scratchpad.filesynchbackupserialnum++; filemenu.save (); local (serialnum = scratchpad.filesynchbackupserialnum); local (subfolder = folder + "backup #" + string.padwithzeros (serialnum, 3) + pc); local (f = subfolder + "builtins.fileSynch.fttb"); file.surefilepath (f); export.sendobject (@fileSynch, f); f = subfolder + "apps.s3.fttb"; export.sendobject (@s3, f); fileSynch.thread.wake ()
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.