patrickfav / rocketchat-exporter

A simple script exporting chats from a rocket chat instance using the public REST API. Useful if no administrative access is possible.
https://favr.dev/opensource/rocketchat-exporter
Apache License 2.0
24 stars 10 forks source link

Only able to export 100 messages at a time #18

Open rainersalal opened 1 year ago

rainersalal commented 1 year ago

I'm trying just about everything I can think and am not able to export any channels or direct messages over 100 messages. That seems to be the maximum, regardless of the value that I set in the initial command.

Here's what I'm entering:

java -jar .\rocketchat-exporter-1.1.2.jar --host "https://mychaturl.com" --maxMsg="50000" -o "./out" -u "myemail@address.com" -k=myuserid

I've tried using the --maxMsg variable both with and without double quotes, and I've also tried it in many different parts of the command, as well as switching back and forth between -m and --maxMsg. Nothing I do is changing the fact that I only get 100 messages returned.

Am I using the --maxMsg flag inappropriately somehow? Is this a setting that exists in my RocketChat installation that needs to be changed, and if so, where would I find that setting?

seraphyn commented 9 months ago

I think this is in Rocketchat > Preferences Rest API maximum limit, not in your code

michalkolodziejski commented 8 months ago

actually the setting is hidden here: RocketChat -> Preferences -> General -> REST API -> Maximum number of records