This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ Choco list -verbose -debug | |
Chocolatey is running on Windows v 10.0.10586.0 | |
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". | |
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". | |
Command line: "C:\ProgramData\chocolatey\choco.exe" list -verbose -debug | |
Received arguments: list -verbose -debug | |
NOTE: Hiding sensitive configuration data! Please double and triple | |
check to be sure no sensitive data is shown, especially if copying | |
output to a gist for review. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zx | |
const MONGO_URL = null; // you can just use mongo url rather than specifying details seperately below. | |
const HOST = "100.71.227.53"; // host ip address | |
const PORT = "27017"; // port of mongo database usually 27017 | |
const AUTH_DB_NAME = "admin"; // usually admin | |
const MONGO_USERNAME = "username"; // username for mongodb | |
const MONGO_USERPASS = "password"; // password for the user | |
const MONGO_OUTPUT_DIR = "/Users/somename/Documents"; // folder where the backup will be saved |