hisabimbola / slack-history-export

A NPM module that allows slack users export their history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incremental export

lalomartins opened this issue · comments

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.

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.

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

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