- VCSA 6.0
- Zabbix 3.0
- on Ubuntu 14.04
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
echo "(===== Checks =====)" | |
if [[ -d "/share/acd-raw/plexcrypt" ]]; | |
then | |
echo "Properly Mounted"; | |
else | |
echo "Crashed"; | |
echo "(===== Unmount =====)" | |
echo "Unmount EncFS ACD" | |
fusermount -z -u /share/acd-dec |
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 | |
export ENCFS6_CONFIG="/home/media/data/.encfs.xml" | |
crypt_mount="/tmp/.media" | |
uncrypt_mount="/tmp/media" | |
uploadcrypt="/home/media/data/uploading" | |
upload="/home/media/data/uploadme" | |
user="media" | |
group="media" |
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 | |
#set -e | |
#set -x | |
# where to log | |
log="/var/log/uploader.log" | |
# where to keep our PIDs | |
tmp="/tmp/uploader" | |
# where is the unencrypted encfs |
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 | |
FOLDER="/home/plex/toupload" | |
inotifywait -m $FOLDER -e create -e moved_to | | |
while read path action file; do | |
echo "The file '$file' appeared in directory '$path' via '$action'" | |
acd_cli ul $FOLDER/"$file" /Media/Unsorted/ | |
rm -rf $FOLDER/"$file" | |
done | |
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/sh | |
IN_DIR=/volume1/Media/Films | |
OUT_DIR=/mnt/media/movies | |
[email protected] | |
if [ ! -z "$1" ]; then | |
IN_DIR="$1" | |
fi | |
if [ ! -z "$2" ]; then |
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 | |
# Restore a Plex database. | |
# Author Scott Smereka | |
# Version 1.0 | |
# Script Tested on: | |
# Ubuntu 12.04 on 2/2/2014 [ OK ] | |
# Plex Database Location. The trailing slash is |
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 | |
# Backup a Plex database. | |
# Author Scott Smereka | |
# Version 1.0 | |
# Script Tested on: | |
# Ubuntu 12.04 on 2/2/2014 [ OK ] | |
# Plex Database Location. The trailing slash is |
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 | |
# | |
# Mac camera auto upload script | |
# | |
##################################################### | |
# Generate filename based on date stamp | |
FILE_SRC=/tmp/$(date +%m%d%y%H%M%S).jpg; | |
DROPBOX_FOLDER=macbook | |
DROPBOX_UPLOADER=/Users/<username>/Dropbox-Uploader/dropbox_uploader.sh |