Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created July 11, 2012 15:14
Show Gist options
  • Save stanwu/3091060 to your computer and use it in GitHub Desktop.
Save stanwu/3091060 to your computer and use it in GitHub Desktop.
backup mail server
#!/bin/bash
mydate=`date +%m%d%y`
mkdir -p $mydate
tar cvzf - \
/etc \
/usr/local/bin \
/var/mail \
/home | split -b 2048M - $mydate/xxxxxxxx.tgz-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment