Skip to content

Instantly share code, notes, and snippets.

View crudh's full-sized avatar

Christian Rudh crudh

View GitHub Profile
@crudh
crudh / dir-backup.sh
Created September 25, 2013 08:26
Directory backup by mail (make sure mailx is installed and in the path).
#!/bin/sh
# CONFIGURE THIS
inputDir=/var/system
outputDir=/tmp
resultPrefix=system
mailSubject="Backup - system"
mailBody="Backup - system"
mailRecipient=christian@primian.se