PageSync also comes with a maintenance script, in order to import previous exported pages.

Options

summary
Additional text that will be added to the files imported History.
user
Your username. Will be added to the import log. [mandatory]
rebuild-index
Rebuild the index file from existing files in export folder
force-rebuild-index
Used with 'rebuild-index' to suppress confirmation
rebuild-files
Will take the index file and re-create all files from the database
force-rebuild-files
Used with rebuild-files. This forces rebuild-files without prompting for user interaction
skip-if-page-is-changed-in-wiki
Will not overwrite a page in the wiki if this page has a different edit user.

ShareFile import options

install-shared-file
Url or path on the server to a PageSync share file
install-shared-file-from-temp
Name of the PageSync Share file already in the PageSync TempPath
silent
Will show no output in the terminal until it is finished.