The tag has no wiki summary.

learn more… | top users | synonyms

14
votes
3answers
9k views

How to automatically run a script when the contents of a directory changes in Linux?

I want to automatically run a script whenever new files are copied into a particular directory. In other words, is there a way in Linux to "watch" a directory for changes and then run something in ...
14
votes
8answers
8k views

Is there a working Linux backup solution that uses inotify?

It takes forever to back up. Before we can trust btrfs or ZFS to backup incremental snapshots, wouldn't it be nice if there was a daemon that used inotify to keep track of which files had actually ...
4
votes
2answers
404 views

Automatic file revision on upload

I need to create a secure remote connection to a couple of files (SFTP, WebDAV/HTTPS,…). Users need to connect and edit those files by downloading->editing->uploading-replacing or, even better, by ...
4
votes
2answers
3k views

How do I get inotify-like event notifications from an NFS server?

AFAIK, the Linux implementation of NFS doesn't support inotify-like event notification from the server-side -- is there a workaround, patch, or alternative solution that can produce the same data?
4
votes
5answers
351 views

Event triggered backup systems — what are my options?

Background - I work in a corporate environment where files on network shares are constantly being modified. Created, deleted, overwritten. Of course with hundreds of users, you can imagine the odd ...
4
votes
3answers
624 views

Automatically run a command every time a file is changed

Each time I make some changes to a file and save, I'd like a command to run. I can set up a Ruby script that could monitor the file and run the command as I'd like, but it occurs to me that there ...
4
votes
3answers
2k views

lsync, unison or some other inotify auto-syncing tool..?

I have an app farm which generates thumbnails and makes them available to a web server farm using nfs. However the performance is so poor so I am going to make a local copy of the files on each web ...
3
votes
3answers
171 views

Monitoring what files are changed

Is there a way in linux (possibly using Inotify?) to "log" what files are edited, live?
3
votes
1answer
162 views

How do you know your current number of inotify parameters (queued_events, user_watches, user_intances) in Linux?

I know how to get/set max values for these parameters with /proc/sys/fs/inotify/max_* files, but I want to know what is the current value...
2
votes
2answers
53 views

Code promotion plan from dev to live for wordpress

We are having wordpress multi-site and the developers do there development on dev server, We are not using any version control for wordpress development, I need some plan so we can move the site from ...
2
votes
2answers
157 views

inotifywait not reacting

I have a very simple script to log when new files are created, in fact, for test purposes I told it to watch for any event. #!/bin/sh ...
2
votes
1answer
273 views

How can I exclude PATTERN from inotify/incron

I'm using incron to watch for events in a directory but I want to exclude some subdirectory or some filename PATTERNS. Is there a way I can do this elegantly?
2
votes
4answers
276 views

Cross-server file mirroring with minimal latency

Platform: Ubuntu 10.04 x86. We have a HTTP server (nginx, but that is not relevant) which serves some static content. Content is (rarely) uploaded by content-managers via SFTP, but may be changed / ...
1
vote
2answers
86 views

Identify when a TCP socket is opened with inotify

As the title suggests, is there a way of being notified of recently opened sockets using inotify/inotify-tools? As far as I can tell inotify only works with inodes and specifically testing if those ...
1
vote
1answer
204 views

how to make pyinotify to run a program on any modification over a file?

I have to watch for any input given to or any changes that made in the present content over a file, upon any modification i need to run a python program which is located in the same folder. I tried ...
1
vote
6answers
314 views

Would this kind of monitoring solution be feasible?

I am wondering if it would be of any help if some kind of tools that does filesystem monitoring (i.e inotify-tools) would be modified in order to monitor/report back through ssh. Would it help ...
1
vote
1answer
376 views

inotifywait usage and exclude

I want to monitor special path to any event of create or modified files recursively in it via inotifywait but I don't know what's my problem is. I have some folders that I want to exclude. watchpath ...
1
vote
1answer
179 views

Can I patch a tiny part of the kernel without recompiling?

I'm using inotify for a project, and desperately require the functionality provided by this patch: http://article.gmane.org/gmane.linux.kernel/758183 Can I apply this patch to my existing Linux ...
0
votes
4answers
1k views

How to find out what files an installer (rpm, deb) created?

I need to find out all the file system modifications an installer did. Most likely the installed package is an rpm or deb, but an app could of course be simply copied over or compiled and installed ...
0
votes
1answer
45 views

I want to save events or logs grabbed using Inotify to a file

I need your help - using Inotify I am watching a directory for the changes like create, delete, rename and move. I want these event to be logged in a file and I want to run Inotify as a service.
0
votes
2answers
102 views

Monitor file changes showing file contents changed

My question is similar to Find out which process is changing a file , but i need something more. inotify only tells about few events on a file, Auditd also just gives us pid which did something to ...
0
votes
2answers
859 views

inotify or similar on centos

I need to get alerted when a new directory or sub directory is created within the root directory that I am monitoring. The alert has to be triggered to a PHP file. How do I do this on CentOS? Is ...
0
votes
1answer
1k views

Question About inotifywait

Here is an example shell script I'm looking at implementing using inotify: inotifywait -mrq -e close_write -e create -e delete -e move /var/www | while read file; do rsync -av /var/www1/ ...
0
votes
1answer
161 views

Alternatives to auditd and inotify for monitoring file deletion [closed]

I'm trying to figure out which processes are deleting files from a specific directory on my CentOS server. I looked at inotify, but all this does is to tell me how many file deletions are occurring; ...
0
votes
1answer
132 views

inotify support not available

Im getting a tailwatch error that I think I have traced down to this from my error logs inotify support not available (Linux::Inotify2 missing or non-functional) Have no idea what this is or how ...
0
votes
1answer
176 views

synchronization between two (or more) file servers : block open files to avoid conflicts

"Short version": When a user opens a file on a local share, other users can open only in read-only, until it is closed. I want this to be true for the remote copy of the file: read-only when the local ...
0
votes
1answer
400 views

Setting up inotify (incron) to monitor several directories using asterisk

I am trying to create an entry in /etc/incron.d/ that'd monitor all changes done under the following directories: /var/www/virtualhosts/dev.anuary.com/*/*/public/css Now, I assume this should be as ...
0
votes
1answer
172 views

Install inotify-tools on a shared host

I'm looking to install inotifytools, for the inotifywait package on a web host. I have ssh (but no root access). When I try to install it, it doesn't show any obvious errors, but doesn't have any ...
-1
votes
1answer
64 views

Run inotifywait in background

I tried literally ALL ways to get this script running in the background (as startup script, as daemon, etc.). The problem is that this script works in the terminal, but not in the background: ...