Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スクリプトのbashを開始し、変更があった場合にディレクトリをバックアップするスクリプトを作成しています。変更には、新しいファイル/フォルダーと既存のファイルへの変更が含まれます。わあ、inotifyを使ってこれをやろうか?
ありがとう!
ツールを探していると思いますinotifywait。
inotifywait
例えば:
inotifywait -r -m -e modify -e create <one_or_more_dirs> | while read line do echo $line done