Rt-shredder cli

Hi!

How on earth does one use the rt-shredder utility? There is an example:

| rt-shredder --plugin ‘Tickets=status,deleted;queue,general’

But according to `rt-shredder --plugin help-Tickets’, queue, status
have been dropped infavour of queue:

| Arguments queue',status’ and updated_before' have been dropped as | you can easy make the same search with thequery’ option. See
examples
| above.

Cheers, Alfred.

Alfred M. Szmidt wrote:

Hi!

How on earth does one use the rt-shredder utility? There is an example:

| rt-shredder --plugin ‘Tickets=status,deleted;queue,general’

But according to `rt-shredder --plugin help-Tickets’, queue, status
have been dropped infavour of queue:

| Arguments queue', status’ and updated_before' have been dropped as | you can easy make the same search with the query’ option. See
examples
| above.

Cheers, Alfred.


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

It’s almost the same, query, (sql)… here’s an example of my Spam Queue
with a date limit, record limit still works the same. I agree there
should be a bit more explanation, I had to look at the source to get a
better idea.

rt-shredder --plugin “Tickets=query,Queue = ‘Spam’ AND LastUpdated <
‘$SDATE’;limit,$SLIMIT” --sqldump $ARCHIVEPATH/spam-$DATE.sql --force

Curtis

1 Like

Lovley! Thank you very much for the answer.

Cheers, Alfred.