Mattermost, Inc.

Backup a Single Channel?

Hi there,

My organization is planning on wiping Mattermost messages after n months, but we have a Contracts channel that we would like to keep backed up indefinitely. Does anyone have a suggestion on how to organize something like that? Will I need to manually export from the DB every n months?

Thank you very much and I appreciate the help.

Hi Michael,
Maybe you could write a bot for that.

It would get all posts since the previous backup with Get Posts.
You get a list with all the posts, you can read each post with Get Post If there are files included you can get them with Get File.

Your bot can store it in the way you want.
Kind regards,

1 Like

Thank you Tom, I appreciate your response. I will look into this and report back!

You could store all the posts in an single large HTM-file with some css. It could even look like the Mattermost channel and it is easy to store, copy and restore/search.