Import the move-to-archive script from mirrormanager1 adjusted for MM2