Comments (7)
Just adding a vote to raise the importance of this issue. Thanks.
from slackdump.
@raine that is a very elegant solution, thank you for sharing!
from slackdump.
I saw that we can do delta backup #193 , but is the zip file is merged into one, I don't want to browser each zip file seperately
from slackdump.
Hey @dassio, I'll have to think about this. Updating existing dumps is tricky, as the parser for the export files will need to be implemented (currently - slackdump only writes, and doesn't read/understand the export files). Maybe some time in the future, after the initial incremental dump is implemented.
from slackdump.
Possibly duplicate of #205
from slackdump.
thanks for the reply, will try if I can chip in. been a while since last time touching golang code
from slackdump.
My quick and dirty solution to get incremental history for a channel in a free slack:
-
Have a git repo to store history
-
Run
slackdump -download -export . -export-type standard "$channel"
to get export for the channelIn this export format, each day gets its own JSON file:
some_channel ├── 2022-08-01.json ├── 2022-08-02.json ├── 2022-08-03.json ├── 2022-08-04.json ├── 2022-08-05.json ...
-
As you run this for example daily, you can keep committing the new changes, but there's a gotcha. The older JSON files available in the current 3 month history window can get some weird changes. For example I've seen messages from the oldest files get removed entirely when running the export. For this reason, I figured it's best to stage and commit changes only for the last 7 days:
for num in $(seq 0 7); do git add "**/$(date -j -v -"$num"d '+%Y-%m-%d'.json)" || true done git add ./**/attachments git add channels.json users.json # Rest of the changes can be disregarded git restore -- **/*.json
-
Now you can visualize the history with
slack-export-viewer
:slack-export-viewer -z .
-
I used
launchd
to automate daily backup.
from slackdump.
Related Issues (20)
- Check if disabled users are not making it to the message's "replies" field
- Add support for exporting canvases and attachments HOT 3
- Variation in capitalization of "type" HOT 8
- When using export-type mattermost program downloads files anyway HOT 2
- Is possible to dump Emojis with information about who created? HOT 1
- How to export direct messages? HOT 1
- Attachments downloaded in standard export although no -download flag HOT 4
- Selective attachments download (i.e. only private/only public) HOT 1
- Callback error when exporting conversation HOT 11
- Add an homebrew installation method HOT 1
- Slack reports browser is not supported during login HOT 1
- Crashes on Linux and Windows HOT 2
- Incremental backup script is empty HOT 2
- failed to initialise the auth provider HOT 8
- Migrate off survey
- Leakless triggering false positive on Windows HOT 1
- Support Slack Email Challenge during EZ Login HOT 1
- Add support for exporting own messages only from timeframe HOT 6
- Chromium doesn't get launched on Guix HOT 10
- User export: Allow `-download` flag to also fetch avatars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackdump.