I hereby claim:
- I am teknofile on github.
- I am teknofile (https://keybase.io/teknofile) on keybase.
- I have a public key ASB2kzie42_xrBUl5TbCmdmIH4NMbPq60IbcEFKTUFMVqwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
These instructions were tested on a pi 3 with the latest version of raspbian (Raspbian GNU/Linux 9.8 (stretch)).
This guide assumes basic competency with the command line. It also assumes you have a functional puppet master set up with the hostname of puppet
. If you can ping puppet
, you should be all set. Also note that I am just getting into puppet and am not a master of this domain. There may be errors, and there is probably a better way to do this, but in my searching, I was unable to locate a good set of instructions to get this working, so here we are. Feel free to contact me for corrections.
You can either switch to root sudo -i
, or prepend all the following commands with sudo
.
apt update
#!/bin/bash | |
MONGO_DATABASE="your_db_name" | |
APP_NAME="your_app_name" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="27017" | |
TIMESTAMP=`date +%F-%H%M` | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
BACKUPS_DIR="/home/username/backups/$APP_NAME" |