-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
736 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Archive Command | ||
|
||
The archive command archives the Slack workspace into a directory of files. | ||
By default, it will perform the archiving of the full workspace that is accessible | ||
to your user. | ||
|
||
Optionally, one can select channels, groups and DMs to archive. For this, one | ||
needs to specify the URLs or IDs of the channels. | ||
|
||
The workspace is archived in the "Chunk" format, that can be viewed with the | ||
`view` command, or converted to other supported formats, such as native Slack | ||
Export format. | ||
|
||
## What is contained in the archive? | ||
|
||
"Archive" behaves similarly to the Slackdump export feature, the output of a | ||
successful run contains the following: | ||
- channels.json.gz - list of channels in the workspace (full archives only); | ||
- users.json.gz - list of users in the workspace; | ||
- CXXXXXXX.json.gz - channel or group conversation messages, where XXXXXXX is | ||
the channel ID; | ||
- DXXXXXXX.json.gz - direct messages, where XXXXXXX is the user ID; | ||
|
||
Output format: | ||
|
||
- Each file is a JSONL file compressed with GZIP. | ||
|
||
Please note that "archive" can not create ZIP files, but you can zip the output | ||
directory manually. | ||
|
||
## What is chunk file format? | ||
|
||
Run `slackdump help chunk` for the format specification. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cmd/slackdump/internal/record/search.go → cmd/slackdump/internal/archive/search.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package record | ||
package archive | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cmd/slackdump/internal/authcmd/auth_test.go → ...slackdump/internal/workspace/auth_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package authcmd | ||
package workspace | ||
|
||
import "testing" | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
cmd/slackdump/internal/authcmd/del.go → cmd/slackdump/internal/workspace/del.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package authcmd | ||
package workspace | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
cmd/slackdump/internal/authcmd/list.go → cmd/slackdump/internal/workspace/list.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package authcmd | ||
package workspace | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
cmd/slackdump/internal/authcmd/new.go → cmd/slackdump/internal/workspace/new.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package authcmd | ||
package workspace | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
cmd/slackdump/internal/authcmd/select.go → cmd/slackdump/internal/workspace/select.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package authcmd | ||
package workspace | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.