hisabimbola / slack-history-export

A NPM module that allows slack users export their history
MIT License
287 stars 45 forks source link

Incremental export #34

Open lalomartins opened 7 years ago

lalomartins commented 7 years ago

It would be great if we could point the script at an existing log file, and then download only stuff that's not already there.

tomsherman commented 7 years ago

If you want to include the current version of Slack messages, you can't do an incremental export; someone could have edited an old message. But, if you're willing to forego that, you could apply a date filter. You could add that as a feature request to this project or slack-backup. I wrote an npm module called slack-message-archiver that has a date filter, but I don't know if it has the features you need.

The portion of the code in slack-message-archiver that does date filtering is here. It relies on moment,js.

hisabimbola commented 7 years ago

Hello @lalomartins

This is a great feature but slack do not have a unique id for each message, but there is a timestamp on each message and I will assume that, that should be unique so should be able to implement this feature around that.

Working on a rewrite of this tool now, but will look into it when done.

Thanks for suggesting

tomsherman commented 7 years ago

@hisabimbola You should be able to concatenate user and ts from channels.history to create a unique message ID.