Skip to content

Instantly share code, notes, and snippets.

@wtser
Created April 18, 2015 01:25
Show Gist options
  • Save wtser/5e914244b1575630880d to your computer and use it in GitHub Desktop.
Save wtser/5e914244b1575630880d to your computer and use it in GitHub Desktop.
网站恢复 Shell 脚本
#!/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