
- Remove mongodb mac os x how to#
- Remove mongodb mac os x manual#
- Remove mongodb mac os x zip#
- Remove mongodb mac os x download#
- Remove mongodb mac os x windows#
Remove mongodb mac os x download#
Download Script. Download the pruning script with the following command: curl -kO "" -o "mongo_prune_js.js"ħ. Enter the Working Directory. Open a Terminal window, and change directories to the working directory created in Step 1 with the following command: cd /pruneĦ. tgz package and any extra extracted files can be deleted as we only need the mongo binary.ĥ. Move mongo to Working Directory. Locate the bin/mongo binary file, and copy it to your working directory. Extract mongo. Move the downloaded package to your working directory, and extract it by double-clicking it or using the application of your choice.Ĥ. The correct MongoDB version will appear in the release notes of the UniFi Network application found in our Community.ģ. tgz release that corresponds to your server's CPU architecture. Visit the MongoDB official download website, and download the. Download mongo. The macOS UniFi installer does not include the mongo binary. For the purpose of this article, we will be creating a directory named /prune.Ģ. Create a Working Directory. Create a working directory on the computer.
Remove mongodb mac os x how to#
How to Prune a UniFi Network Application Hosted on macOSġ. Cleanup. Delete the directory you created and the files inside if you don't intend to use them again. Verify Completion. Verify that the operation completed successfully and that no errors were reported. Do not interrupt the process until you receive a message that says bye.ĩ. NOTE:As the database is actually being modified, this step may take considerably longer compared to the test (dry) run. Once changes have been made and saved, run the modified script, actually purging the database this time: mongo.exe -port 27117 < mongo_prune_js.js Do not use a rich text editor such as Wordpad or Word that can add hidden characters and won't respect line breaks.Įdit var days=7 to change how many days worth of data to keep, and change var dryrun=true to var dryrun=false to allow the script to actually prune the database rather than just do a test run.Ĩ. Use Notepad++ or a similar plain-text editor to modify the script and save it. By default, the script will keep 7 days worth of data. Disable "dry run". Edit the script to disable dry run and configure the number of days worth of data to keep. Type in the following command and hit enter: mongo.exe -port 27117 < mongo_prune_js.jsħ.


This step is to make sure the script runs as expected. Perform Test Run. By default, the script is in "dry run" mode and will indicate what will be pruned from the database without actually doing it. Enter the Working Directory. In the command prompt, change to your working directory by typing in the following command and hitting enter: cd C:\prune\Ħ. In the popup, type cmd, and press ENTER.ĥ.
Remove mongodb mac os x windows#
Open Command Prompt. Open the command prompt by pressing WINDOWS + R. Download Script. Download the script to the server by clicking here, and save it to your working directory.Ĥ. You may ignore all other files included in the package.ģ. Extract mongo. Extract \bin\mongo.exe to a working directory of your choice.
Remove mongodb mac os x zip#
zip release that corresponds to your OS and the MongoDB that matches the one your UniFi Network application version is using, as seen in the MongoDB log, or stated in the application release notes on the Community.Ģ. Download mongo. The Windows UniFi installer does not include the mongo binary. How to Prune a UniFi Network Application Hosted on Windowsġ. If there is suspected invalid or corrupt entries in your database, please follow the instructions below. Compacting the database involves defragmentation, but not error correcting. The compact database option will not remove data from the database, only shrink the dataSize of what is currently in the database.

Remove mongodb mac os x manual#
Assuming you are able to log into the UniFi Network application, please use the compact database button under the Services section in Settings > Maintenance instead of following the manual pruning instructions in this article. The UniFi Network application offers the option to compact the database from within the application itself. UniFi uses MongoDB to store relevant information about connected devices, application configuration, clients, and statistics.

