This file contains hidden or 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
| if (typeof Cc == "undefined") { Cc = Components.classes; } | |
| if (typeof Cu == "undefined") { Cu = Components.utils; } | |
| if (typeof Ci == "undefined") { Ci = Components.interfaces; } | |
| const nsX509CertDB = "@mozilla.org/security/x509certdb;1"; | |
| const nsIX509Cert = Ci.nsIX509Cert; | |
| const nsIX509CertDB = Ci.nsIX509CertDB; | |
| const certdb = Cc[nsX509CertDB].getService(nsIX509CertDB); | |
| let certstring = `-----BEGIN CERTIFICATE----- |
This file contains hidden or 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
| #!/bin/bash | |
| MONGO_DATABASE="your_db_name" | |
| MONGO_HOST="127.0.0.1" | |
| MONGO_PORT="27017" | |
| TIMESTAMP=`date +%F` | |
| MONGODUMP_PATH="/usr/bin/mongodump" | |
| BACKUPS_DIR="/home/username/backups/$APP_NAME" | |
| BACKUP_NAME="$TIMESTAMP" |