| View previous topic :: View next topic |
| Author |
Message |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Mon Jul 10, 2006 2:50 pm Post subject: Deleting archived mails |
|
|
Hello Postfix users,
I have a general mailserver topic related problems. Its not
necessarily postfix related so feel free to ignore this message,
however I do appreciate any replies I might receive.
In the following scenario a postfix based mail server is running for
some 400+ clients.
We archive all original mail in a backup folder were we remove older
mail after a certain period.
We use f.e the following command:
"find /backup/mail_archive/ -mtime +300 -type f -exec /bin/rm -f {} \;"
This works fine on our test machines, but on the production server the
scale is a different one (2-3GB raw data/day), so the command just
stops and never finishes.
Does anybody have any ideas or hints, how to go about troubleshooting
this issue ?
Thank you for reading the message.
Best regards
NIls Valentin |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Mon Jul 10, 2006 2:51 pm Post subject: |
|
|
Bulk deletion.
find /backup/mail_archive/ -mtime +300 -type f |xargs /bin/rm -f
Devdas Bhagat |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Mon Jul 10, 2006 2:57 pm Post subject: |
|
|
| find /backup/mail_archive/ -mtime +300 -type f -print0 | xargs -0 /bin/rm |
|
| Back to top |
|
 |
|