美文网首页
rsync 过滤参数

rsync 过滤参数

作者: jacky_8897 | 来源:发表于2023-05-15 13:53 被阅读0次

    rsync 过滤参数

    -av 目录
    --include="需要的的文件"

    /usr/bin/rsync -av ./dist/ --no-owner --include=".htaccess" --no-group -e "ssh -p 22 -l root" \
            --delete \
            --exclude=log \
            --exclude=opcache \
            --exclude=.git \
            --exclude=.eslintrc.js \
            --exclude=.*.sw? \
            "$WORKSPACE"/dist/* 10.40.11.84:"$DEPLOY_DST_DIR"/ 2>&1
    
    ``

    相关文章

      网友评论

          本文标题:rsync 过滤参数

          本文链接:https://www.haomeiwen.com/subject/qlwmsdtx.html