Corrected with Myron's suggestions, now 2 types of backup, then use incremental as Scott suggested.
Full (230-250 mb )
All of dokwiki except \data\cache, \data\locks & data\tmp
dokuwiki\*.* (files & directories)
dokuwiki\bin
dokuwiki\config
dokuwiki\data\* (73mb) all except cache & tmp
dokuwiki\inc
dokuwiki\lib (147mb)
dokuwiki\vendor
Content + Plugins + User (86mb ++ )
Generally needed
dokuwiki\config (settings, user & acl, config data changed since initial install)
dokuwiki\data\media (wiki images, 74mb )
dokuwiki\data\meta (meta data for wiki, needed)
dokuwiki\data\media-meta (meta data for images, needed)
dokuwiki\data\pages (wiki text pages, needed, 2 mb )
dokuwiki\data\attic (stores history of changes & deleted pages, may be large)
dokuwiki\data\media-attic (stores deleted media, may be large)
dokuwiki\data\locks (locks on pages,not needed)
dokuwiki\data\index (search index, can be recreated w indexer.php, need)
dokuwiki\lib\plugins (Plugins, needed, unique set, can be reloaded, 10mb)
dokuwiki\lib\tpl (template, stores user changes 1mb)
Not Needed
dokuwiki\data\cache (not needed)
dokuwiki\data\tmp (not needed)
dokuwiki\data\locks (locks on pages, not needed)
Regarding:
Note that you will need to lock your DokuWiki while doing the backups, the above scripts don't do that.
I understand "locking" as a way of ensuring that only one User-Manager "Editor" is changing the page.
What happens when an Editor leaves a page "locked" somehow?
I don't understand about locks. If a page is "locked" can it be accessed to be backed up by TAR?
Or does a page have to be "locked" to be backed up?
Is there an explanation page somewhere for the use of
https://www.dokuwiki.org/cli dwpage.php while backing up the Wiki?
USAGE: dwpage.php <OPTIONS>
Utility to help command line Dokuwiki page editing, allow pages to be
checked out for editing then committed after changes
ACTIONS
checkout: see $ dwpage.php --help=checkout
commit: see $ dwpage.php --help=commit
lock: see $ dwpage.php --help=lock
OPTIONS
-h, --help=<action>: get help
e.g. $ ./dwpage.php -hcommit
e.g. $ ./dwpage.php --help=commit
What do we have to do to get a proper backup?
Do we have to "checkout" the entire document, or page by page to backup?
Thank you for all your help. For others, there is also good
https://www.dokuwiki.org/faq:backup Backup Info here too.
PS: Is there a way at 2:00pm to kick everyone off, they should be in bed, save the open files, and lock the whole wiki while it is backed up, Leaving a notice to active users that the wiki is being backup and off line? Probably requires some complicated programming with ACL.