Created
April 18, 2015 01:25
-
-
Save wtser/5e914244b1575630880d to your computer and use it in GitHub Desktop.
网站恢复 Shell 脚本
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/sh | |
function restore(){ | |
cd /var/www/ | |
for siteName in $* | |
do | |
echo "解压 "$siteName | |
tar zxvf $siteName".tar.gz" | |
rm $siteName".tar.gz" | |
done | |
echo '网站备份完成' | |
} | |
restore 'site1.cn' 'site2.com' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment