wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
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
const path = require('path') | |
const winston = require('winston') | |
const LOG_DIR = path.join(path.dirname(path.dirname(__filename)), 'logs') | |
const consoleLogFormat = winston.format.combine( | |
winston.format.timestamp({format: 'DD/MM/YYYY HH:mm:ss'}), | |
winston.format.colorize(), | |
winston.format.printf(({level, message, label, timestamp}) => { | |
return `${timestamp} ${label ? `[${label}] ` : ''}${level}: ${message}`; |
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
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 1, |
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
import bson | |
from pymongo import MongoClient | |
def dump(collections, conn, db_name, path): | |
""" | |
MongoDB Dump |
This guide is useful for when installing truenas scale on large ssd. The idea is to create a small partition (16GB) to install the OS. And use the remaining space to create another partition for creating an nvme pool.
Mainly inspired from @sthames42 at https://gist.github.com/gangefors/2029e26501601a99c501599f5b100aa6
- Download TrueNAS Scale and burn to USB.
- Boot from USB and select
Start TrueNAS SCALE Installation
from the Grub loader menu.
OlderNewer