Giter Club home page Giter Club logo

rsync-demo's Introduction

incron 所支援的檔案狀態如下:

  • IN_ACCESS 檔案被讀取*
  • IN_ATTRIB Metadata 被修改* (permissions, timestamps, extended attributes, etc.)
  • IN_CLOSE_WRITE 檔案被開啟,有寫入後關閉檔案*
  • IN_CLOSE_NOWRITE 檔案被開啟,無任何寫入後關閉檔案*
  • IN_CREATE 監測目錄下有檔案或目錄被新增*
  • IN_DELETE 監測目錄下有檔案或目錄被刪除*
  • IN_DELETE_SELF 監測的檔案或目錄被刪除
  • IN_MODIFY 檔案被修改*
  • IN_MOVE_SELF 監測的檔案或目錄被移動
  • IN_MOVED_FROM 監測目錄下有檔案被移出*
  • IN_MOVED_TO 監測目錄下有檔案移入*
  • IN_OPEN 檔案被打開*
  • IN_ALL_EVENTS 所有的狀態
  • IN_NO_LOOP 用來避免無限迴圈

incron 可以使用變數

  • "$$" 錢字號(跳脫)
  • $@ 監測的目錄
  • $# 觸發的檔案名稱
  • $% 觸發的狀態(文字)
  • $& 觸發的狀態(數字)

rsync-demo's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.