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
#!/bin/bash | |
# | |
# if you have to manage an EMC Isilon cluster and want to use the | |
# File System Analytics (FSA) tool to do a "du --depth X", you'll quickly | |
# realise they unbelievably haven't implemented a recursive scan. | |
# This script does that. | |
# | |
# Must be run on the isilon cluster machines with sufficient privileges to | |
# access the FSA reports | |
# |
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
#!/bin/sh | |
# | |
# we want a rocketchat in a docker container to be able to access this machine's mailer daemon | |
# but it only accepts connections on the local interface (127.0.0.1) | |
# we can't change the mailer config, because that belongs to someone else and they'd be annoyed | |
# so we forward packets from this machine's docker network interface to localhost | |
# This script sets up the necessary packet mangling | |
# if our argument is "delete", then remove rules | |
if [ "$1" == "delete" ] ; then |
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
[Unit] | |
Description=Run a backup-dump of the mongo database in the mongo docker container | |
Requisite=mongo.service | |
After=mongo.service | |
[Service] | |
Type=oneshot | |
User=root | |
# have to escape the %s or systemd replaces them | |
ExecStart=/bin/docker exec -t mongo bash -c 'mongodump --archive=/data/dump/$(date +%%Y%%m%%d%%H%%M%%S).gz --gzip' |