Shell scripts to run Borg backups unattended.
# backup script
#This script is independet of lib or python version (tested on python 2.7 and 3.5) | |
import telegram | |
#token that can be generated talking with @BotFather on telegram | |
my_token = '' | |
def send(msg, chat_id, token=my_token): | |
""" | |
Send a mensage to a telegram user specified on chatId | |
chat_id must be a number! |
#!/bin/bash | |
#### Media file processing script for Beets | |
# This script gets triggered by some means (inotify, auditd, cron, etc.) and processes music files in some locations. | |
# | |
# Uses the already defined beets configuration for the user this script runs as. | |
command -v beet >/dev/null 2>&1 || { echo >&2 "I require beets but it's not installed or in my $PATH. Aborting."; exit 1; } |