I want to use inotifywait on a given directory, for example /test. Now I want to copy a directory called /dir to /test. /dir can contain multiple files and sub-directories.
Which event do I have to track if I want to wait until /dir and all its content is copied completely?
I used this command:
inotifywait -m -e moved_to "$DIR" --format "%f" | while read f
But no event is triggered.