Marxsal / polly

Batch file system to restore TiddlyWiki files from download directory to their original home directory
9 stars 1 forks source link

polly

Batch file system using Windows Powershell to restore TiddlyWiki files from download directory to their original home directory

Effectively, this becomes a new way to save your files, but with these features:

Disclaimer

WARNING! This should be considered Beta or Alpha level software. It has not been tested under all possible conditions. Please use parallel backup systems for any files you value. In particular, if you are using a networked file system, check regularly to be sure your files are saving/restoring as intended. It is recommended that you use one or more the backup systems (either zip or backup directory) but it is currently up to the user to periodically check and maintain those backup directories. Note that over time the backup directories may accumulate many megabytes of files.

Prerequisites

It may actually work with earlier versions of Powershell, but some menus may disappear. You can download Powershell 5 from MicroSoft for free.

Setup

Known adjustments for Linux (and probably Mac)

From the Usage file

|
|  powershell -file .\polly.ps1 [-ini "settingsfile.ini"] [-run "menu"|"auto"|"once"|"parrot"]
|
|   -----------------------------------------------------------------------------------------
|
| Command Line   -ini   "settingsfile.ini", a user defined settings file 
|   Parameters         
|   ----------     Without an -ini parameter Polly loads "settings.ini".     
|                  Without "settings.ini" present Polly prompts to create it.
|                  Once created users can make any number of additional ".ini" files.
|  
|                -run   "menu"    displays menu (which can start all other modes)                
|                       "auto"    checks & restores wikis at user set intervals
|                       "once"    checks & restores wikis, then exists
|                       "parrot"  runs extended parroting (only), then exits [NOT YET DONE]
|
|                  Without a -run parameter Polly runs in "menu" mode.
|
|  Batch Files   Polly comes with three batch files ...
|  -----------             
|                       "polly.bat"      runs Polly in "menu" mode
|                       "polly-auto.bat" runs Polly in "auto" mode
|                       "polly-once.bat" runs Polly in "once" mode 
|
|                  All load the default "settings.ini" file.
|                  The user can create as many ".bat" files as needed to load any "-ini".