[rt-users] RT-Shredder remove users with no tickets, exclude system object?

Josh Stompro stomproj at larl.org
Tue Nov 5 10:58:12 EST 2013


Hello, could someone explain how to exclude the system object/User-1 object
from the rt-shredder command to remove all users with no tickets.

Here are the results I get when I try to run rt-shredder.

root at virt-web2:~# rt-shredder --plugin
"Users=no_tickets,1;status,enabled;replace_relations,Nobody;limit,20"
--sqldump /root/shredder-restore-users3.sql
SQL dump file is '/root/shredder-restore-users3.sql'
Next 13 objects would be deleted:
        RT::User-2033 object
        RT::User-1 object
        RT::User-3009 object
        RT::User-20387 object
        RT::User-10375 object
        RT::User-15815 object
        RT::User-20697 object
        RT::User-13253 object
        RT::User-11873 object
        RT::User-16755 object
        RT::User-6993 object
        RT::User-220 object
        RT::User-20373 object
Do you want to proceed? [y/N] y

ERROR: System object was requested for deletion, shredder couldn't
do that because system would be unusable than.

Thanks
Josh







More information about the rt-users mailing list