mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 13:15:27 +00:00
63 lines
No EOL
1.5 KiB
Markdown
63 lines
No EOL
1.5 KiB
Markdown
# snac2nex
|
|
|
|
[](https://deps.rs/repo/codeberg/postscriptum/snac2nex)
|
|
[](https://crates.io/crates/snac2nex)
|
|
|
|
Convert [Snac](https://codeberg.org/grunfink/snac2) profiles to the [Nex](https://nightfall.city/nex/info/specification.txt) blog format.
|
|
Useful as a mirroring tool for an existing fediverse instance or for migrating the data once.
|
|
|
|
## Install
|
|
|
|
``` bash
|
|
cargo install snac2nex
|
|
```
|
|
|
|
## Usage
|
|
|
|
``` bash
|
|
snac2nex -s /path/to/snac/storage -t /path/to/nex -u user1 -u user2
|
|
```
|
|
|
|
### Options
|
|
|
|
``` bash
|
|
-s, --source <SOURCE>
|
|
Path to the Snac2 profile directory
|
|
|
|
-t, --target <TARGET>
|
|
Target directory for public data export
|
|
|
|
-u, --user <USER>
|
|
Username to export
|
|
|
|
-b, --binary
|
|
Export binary files (attachments)
|
|
|
|
-r, --rotate <ROTATE>
|
|
Keep running as the daemon, renew every `n` seconds
|
|
|
|
-f, --format-content <FORMAT_CONTENT>
|
|
Post template pattern
|
|
|
|
[default: {content}{attachments}{link}{tags}{updated}]
|
|
|
|
--format-filename <FORMAT_FILENAME>
|
|
Post filenames format
|
|
|
|
* escaped with `%%`
|
|
|
|
[default: %H:%M:%S.txt]
|
|
|
|
--format-updated <FORMAT_UPDATED>
|
|
Post `{updated}` time format
|
|
|
|
* escaped with `%%`
|
|
|
|
[default: "%Y/%m/%d %H:%M:%S"]
|
|
|
|
-h, --help
|
|
Print help (see a summary with '-h')
|
|
|
|
-V, --version
|
|
Print version
|
|
``` |