Rt-2.0-to-dumpfile : Incremental user export

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

— 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 @@
else {

  • my @users = export_users($ds);
  • my @users = export_users($ds, $since);
    $ds->{‘User’} = @users;

    open( META, “>$export_dir_base/metadata” );