On the General tab, enter “Name”, “Description”, select “Run whether user is logged in or not", and select "Run with highest privileges".Open Task Scheduler and click on “Create Task”.To create a scheduled task on Windows 2012 Server, follow these steps: The easiest way to do this is to use Windows Task Scheduler. Once testing is done, the next step is to schedule the backup. Once you have a batch file or other script to perform your backups, you need to test the script to ensure it works properly.
As an example of additional useful features to include with your backups, I have includedthe code for a batch scriptI created that adds the following information: logging with date/time stamping, a backup that is also date/time stamped, automated archival of the backup, copying the archive to a network location, and cleanup of the temp files. You can add additional features, such as logging and date/time stamps, to the backups. "C:\Program Files\Alteryx\bin\AlteryxService.exe" start "C:\Program Files\Alteryx\bin\AlteryxService.exe" emongodump=Z:\Path\MongoBackup "C:\Program Files\Alteryx\bin\AlteryxService.exe" stop Keep in mind that paths may vary on your server, but it should look something like this. You can easily script this to a batch file with a few simple console commands. Execute the following command to save a backup of the database in the specified folder:.I will also outline the steps below for completeness. The actual steps to perform a MongoDB backup are covered in detail in the online help under the server configuration section or at this direct link. Doing so will allow you to schedule the backup using Windows Task Scheduler. I would recommend creating a batch file or script to perform the process. Luckily, backing up the embedded MongoDB is pretty simple, and can be done with a few console commands. You can find Part 1 at:Īlteryx Server Backup and Recovery Part 1: Best PracticesĪs long as a backup of the Mongo database is available, you can get Alteryx Server back up and running. This is the second article in a series on Alteryx Server backup and recovery.