# snac2nex [![Dependencies](https://deps.rs/repo/codeberg/postscriptum/snac2nex/status.svg)](https://deps.rs/repo/codeberg/postscriptum/snac2nex) [![crates.io](https://img.shields.io/crates/v/snac2nex.svg)](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 Path to the Snac2 profile directory -t, --target Target directory for public data export -u, --user Username(s) to export -a, --attachment Include attachment files export Supported values: * `c` (`copy`) - copy files * `h` (`hard`) - create hard links * `s` (`soft`) - create soft links (macos, linux, windows only) -r, --rotate Keep running as the daemon, renew every `n` seconds -f, --format-content Post template pattern [default: {content}{attachments}{link}{tags}{updated}] --format-filename Post filenames format * escaped with `%%` [default: %H:%M:%S] --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 ``` ## See also * [Nexy](https://github.com/YGGverse/nexy) - Server for the Nex protocol, written in Rust * [Yoda](https://github.com/YGGverse/Yoda) - Client for the Gemini & Nex protocols, written in Rust