procmail
[Top] [All Lists]

Re: strange stuff in backup directory

1997-11-12 11:55:10

Stan Ryckman found the following in his backup directory:
|   -rw-------  1 stanr        3063 Nov  4 03:31 .nfsA0c724.4
|   -rw-------  1 stanr        1780 Nov  3 23:00 .nfsA47da4.4
|   -rw-------  1 stanr         849 Nov  3 23:22 .nfsA481f4.4
|   -rw-------  1 stanr        2293 Nov 11 11:28 .nfsA737d4.4

Those look like some of the temporary names procmail uses while it is trying
to write a file out, which it renames if things go well.  I noticed that they
all came from a 4h 31 span overnight; perhaps there was some systems work
being done on your machine that screwed things up?

I wouldn't just blame procmail.  This seems to be an artifact of using an
NFS server to write files.  I have seen these left around by all sorts of
programs--often when a file by the "right" name has the same contents.

May I recommend this?
    :0 ic
    | cd backup && rm -f dummy `ls -t msg.* .nfs* | sed -e 1,3d`

OR (possibly in a cron job):

   find <dir> -name ".nfs*" -atime +7 -exec rm -f {} \;

(double check that command, especially the '+' -- I always have trouble with 
'find')

<Prev in Thread] Current Thread [Next in Thread>