X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fsbin%2Frt-shredder.in;h=e172a753e101fc9feb6b87ae896ad410b887e46d;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=c0655dbe1165b5d234e85c4448abb6d593c622cc;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/sbin/rt-shredder.in b/rt/sbin/rt-shredder.in index c0655dbe1..e172a753e 100755 --- a/rt/sbin/rt-shredder.in +++ b/rt/sbin/rt-shredder.in @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -77,8 +77,8 @@ should wipeout. Outputs INSERT queries into file. This dump can be used to restore data after wiping out. -By default creates files -F<< /var/data/RT-Shredder/-XXXX.sql >> +By default creates files named F<< -XXXX.sql >> in the current +directory. =head2 --object (DEPRECATED) @@ -135,7 +135,10 @@ BEGIN { } -use RT::Shredder (); +use RT -init; + +require RT::Shredder; + use Getopt::Long qw(GetOptions); use File::Spec (); @@ -146,7 +149,6 @@ our %plugins = RT::Shredder::Plugin->List; our %opt; parse_args(); -RT::Shredder::Init( %opt ); my $shredder = RT::Shredder->new; {