View Backup-Recent.sh
#!/bin/bash | |
set -eux | |
BACKUP_ACCOUNT=backupuser@backup.example.com | |
MAXSIZE=45000000000 | |
# Wait for the net to come up | |
while [ ! $(ifconfig | grep 'status: active') ]; do |
View archive_logs
#!/bin/bash | |
# DreamHost Web Log Archiver | |
# | |
# DreamHost only stores web logs for a few days (configurable 3-30 days), | |
# so to maintain long term logs, an archive copy must be maintained. | |
# | |
# This script copies new gzipped http/https log files from logs/ to | |
# logs_archive/ | |
# |
View mailpage.sh
#!/bin/bash | |
# Examples: | |
# | |
# mailpage.sh http://example.com chuck@habilis.net 'An Example Page' | |
# mailpage.sh http://example.com chuck@habilis.net 'Passworded Page' --user=john --password=xxxxx | |
set -eu | |
USAGE=$'\n'"Usage: $(basename $0) URL address subject [ wget options ]" |