Created
July 11, 2012 15:14
-
-
Save stanwu/3091060 to your computer and use it in GitHub Desktop.
backup mail server
This file contains 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 | |
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