Managing LeafWiki on Windows using Scheduled Tasks for startup and backup #999
mry
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
Thanks for sharing this! I would also like to but your configuration example into the docs folder as a installation example. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Use a scheduled task to kick-off when user log in to the Windows system which will start the LeafWiki binary in the background. It will be visible as a windows background process and can be controlled via Scheduled Tasks and Activity Monitor, thus it can be stopped and started on-demand.
Pre-reqs:
Install and configure your instance first and make sure it works as expected. Make sure to put all configuration in a cmd file.
start_leafwiki.cmd
Setup a scheduled task to run when user logon, calling the start_leafwiki.cmd.
Backup on windows calling 7zip from cmd file backup_leafwiki.cmd
Make sure to adapt logic to your local datetime settings, this works on my computer!
Map the network share to a drive letter instead of using UNC share names (\SMB_HOSTNAME\SMB_SHARENAME)
Setup a scheduled task to run at a specific time for backup, calling backup_leafwiki.cmd.
Misc scripts to control the scheduled task.
Kill the scheduled task from cli kill_leafwiki_task.cmd"
Run the scheduled task from cli run_leafwiki_task.cmd"
Beta Was this translation helpful? Give feedback.
All reactions