[rt-users] rt-2.0-to-dumpfile : Incremental user export.

Michael Bowe mbowe at pipeline.com.au
Thu Feb 26 20:47:43 EST 2004


If you run this script with the "since" parameter :
-  the full userlist is dumped
-  the incremental tickets are dumped.

Is it a mistake that all the users are dumped?

Looking at the export_users() function, it appears to have support for the
incremental/since option, but it is not being used.

The incremental dump works heaps quicker if only the new users are exported.
On my system it reduced the incremental dump from many hours to just a few
minutes.


--- rt-2.0-to-dumpfile.orig     Sat Feb 14 03:03:35 2004
+++ rt-2.0-to-dumpfile.modified Fri Feb 27 12:27:11 2004
@@ -173,7 +173,7 @@
     export_tickets();
 }
 else {
-    my @users = export_users($ds);
+    my @users = export_users($ds, $since);
     $ds->{'User'} = \@users;

     open( META, ">$export_dir_base/metadata" );


Michael.




More information about the rt-users mailing list