The description on etagAge is not correct. It has nothing to do with backups. I'm not sure why I wrote that, but backups are always saved no matter what. I must have been tired that day!
On Fri, Oct 4, 2019 at 9:37 AM Arlen Beiler <arlen...@gmail.com> wrote: > Here is the TypeScript interface for the putsaver property, which is a > top-level property (in other words, put it beside the tree property). > > So > "putsaver": { > "backupFolder": "", > "etag": "optional", > // etc. > } > > export interface ServerConfig_TiddlyServer { > /** > > * Backup folder to store backups in. Multiple folder paths can backup to > the same folder if desired. > */ > backupFolder?: string, > /** > > * GZip backup file to save disk space. Good for larger wikis. Turn this > off for experimental wikis that you often need to restore from a backup > because of a bad line of code (I speak from experience). > */ > gzipBackups?: boolean, > /** > > * Save a backup only if the disk copy is older than this many seconds. If > the file on disk is only a few minutes old it can be assumed that very little > has changed since the last save. So if this is set to 10 minutes, and your > wiki gets saved every 9 minutes, only the first save will trigger a backup. > This is a useful option for large wikis that see a lot of daily work but not > useful for experimental wikis which might crash at any time and need to be > reloaded from the last backup. > */ > etagAge?: number, > /** > > * Whether to use the etag field -- if not specified then it will check it > if presented. > > * This does not affect the backup etagAge option, as the saving mechanism > will still > * send etags back to the browser, regardless of this option. > */ > etag?: "required" | "disabled" | "optional" > } > > On Fri, Oct 4, 2019 at 9:11 AM Adrian Holbrook <adrian.holbr...@gmail.com> > wrote: > >> Just out of curiosity as I have not been able to get the backup to work >> on the previous installation I notice that you have "backupDirectory" but >> in the Settinggs example files oin Version 2.1.3 it had "backupFolder". Is >> this important? >> >> Adrian >> >> On Friday, October 4, 2019 at 5:06:58 AM UTC+1, TonyM wrote: >>> >>> Arlen, >>> >>> Thanks for maintaining and enhancing this wonderful solution. I notice >>> the settings.json seems to have changed a lot. I copied my tree into the >>> new settings.json >>> >>> But these settings were in my old settings.json >>> "types":{ >>> "htmlfile": ["htm", "html", "hta", "png", "tw"] >>> }, >>> "username": "", >>> "password": "", >>> "host": "192.168.1.81", >>> "port": 80, >>> "backupDirectory": "C:\\Data\\TW5\\backups", >>> "etagWindow": 10, >>> "etag": "", >>> "_disableLocalHost": "true", >>> "useTW5path" : false >>> >>> Have these being deprecated? >>> >>> I believe I will still need >>> "etag": "required", >>> "etagWindow": 10, >>> >>> But the setting the port is Port is not documented here >>> https://arlen22.github.io/tiddlyserver/docs/serverconfig.html#port-number >>> >>> And >>> "types":{ >>> "htmlfile": ["htm", "html", "hta", "png", "tw"] >>> }, >>> >>> Is desirable because I now have .tw files. >>> >>> Please let me know! >>> >>> Thanks >>> Tony >>> >>> >>> On Friday, October 4, 2019 at 12:56:46 PM UTC+10, Arlen Beiler wrote: >>>> >>>> Hi everyone, >>>> >>>> I've upgraded TiddlyServer to TW5.1.21. >>>> >>>> This release also adds /assets/tiddlywiki which serves the tiddlywiki >>>> folder the server is using to mount data folders. It's mainly for >>>> convenience, but it has some really great use-cases such as loading plugins >>>> as external javascript instead of in the HTML file, which of course get >>>> cached across your entire site, not just for that page. >>>> >>>> https://github.com/Arlen22/TiddlyServer/releases/tag/v2.1.5 >>>> >>>> Enjoy >>>> Arlen >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "TiddlyWiki" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to tiddlywiki+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/0484ce6b-e4d4-43b6-b343-ac28515f1616%40googlegroups.com >> <https://groups.google.com/d/msgid/tiddlywiki/0484ce6b-e4d4-43b6-b343-ac28515f1616%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAJ1vdSROzOShHK1aLKi0HPsAFt98TJZbQiQbkJTMEs6FF5UOdA%40mail.gmail.com.