[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Moving large numbers of files



I'm currently dealing with a spam problem from a domain name I recently aquired. This company had allowed it to be an open relay for several years and, as such, they were getting hit pretty hard spammers.

The problem I'm having is that my mail queue has been approaching 30,000 emails (or more than 100,000 files). This occasionally causes Sendmail to stop accepting incoming connections even when it's still able to send mail (using it with MailScanner).

When I try to move the entire directory contents I get "argument list too long" and end up having to move the files in "chunks"--that is, I specify "mv dfh0* /dest/dir" and increment the last digit until those files are moved. I continue this until the queue's cleaned out. This allows my server some breathing room until I can address the problem with out effecting mail delivery.

My question is this: Is there a way to move this number of files in one swoop without having to "chunk" them?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]