【问题标题】:rsync exclude folder contents but still create folderrsync 排除文件夹内容但仍创建文件夹
【发布时间】:2015-06-14 20:34:05
【问题描述】:

我有我的申请:

folder1
folder2
cache
     something_cached1
     something_cached2

现在我想将我的项目同步到服务器

但是

如果我这样做

 --exclude=cache

该文件夹将不存在于服务器中,因此,当应用程序尝试写入不存在的位置时,我会收到错误消息

【问题讨论】:

    标签: linux deployment web-deployment rsync


    【解决方案1】:

    我看很简单, 只需添加:

    --exclude 'cache/*'
    

    【讨论】:

      猜你喜欢
      • 2015-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多