欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

rsync 只同步目錄結(jié)構(gòu)不同步文件的方法

 更新時間:2015年01月18日 22:03:11   投稿:mdxy-dxy  
這篇文章主要介紹了rsync 只同步目錄結(jié)構(gòu)不同步文件的方法,需要的朋友可以參考下

If you are using an older rsync version, try:

復(fù)制代碼 代碼如下:

rsync -av --include='*/' --exclude='*' /path/to/src /path/to/dest/
rsync -av --include='*/' --exclude='*' /path/to/apache/logs/ root@www433.nixcraft.net.in:/path/to/apache/logs/

# cd /var/log/apache/
# rsync -av -f"+ */" -f"- *" . root@server2.nixcraft.com:/var/log/apache/

Sample outputs:

building file list ... done
./
cricketnow.in/
cyberciti.biz/
hexindia.net/
io9.in/
nixcraft.com/
theos.in/
sent 388 bytes received 98 bytes 972.00 bytes/sec
total size is 0 speedup is 0.00

You can also make local copies as follows:
# cd /var/log/apache/
# rsync -av -f"+ */" -f"- *" . /jailfs/apache/httpd_root/var/log/apache/


相關(guān)文章

最新評論