for i in `ls`; do { tar zcvf $i.tar.gz $i/wwwroot/; }; done; for i in `ls /home|egrep -v "admin|tmp"`; do { tar zxvf $i.tar.gz -C $i/public_html/; }; done; |
---
转载请注明本文标题和链接:《一个命令全包打包和解压》
for i in `ls`; do { tar zcvf $i.tar.gz $i/wwwroot/; }; done; for i in `ls /home|egrep -v "admin|tmp"`; do { tar zxvf $i.tar.gz -C $i/public_html/; }; done; |
---
转载请注明本文标题和链接:《一个命令全包打包和解压》
发表评论