implement optional binary files copy

This commit is contained in:
postscriptum 2025-07-01 20:13:44 +03:00
parent cf8c676732
commit ef1ba39589
5 changed files with 101 additions and 43 deletions

View file

@ -21,40 +21,43 @@ 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
-s, --source <SOURCE>
Path to the Snac2 profile directory
-t, --target <TARGET>
Target directory for public data export
-t, --target <TARGET>
Target directory for public data export
-u, --user <USER>
Username to export
-u, --user <USER>
Username to export
-r, --rotate <ROTATE>
Keep running as the daemon, renew every `n` seconds
-b, --binary
Export binary files (attachments)
-f, --format-content <FORMAT_CONTENT>
Post template pattern
-r, --rotate <ROTATE>
Keep running as the daemon, renew every `n` seconds
[default: {content}{attachments}{link}{tags}{updated}]
-f, --format-content <FORMAT_CONTENT>
Post template pattern
--format-filename <FORMAT_FILENAME>
Post filenames format
[default: {content}{attachments}{link}{tags}{updated}]
* escaped with `%%`
--format-filename <FORMAT_FILENAME>
Post filenames format
[default: %H:%M:%S.txt]
* escaped with `%%`
--format-updated <FORMAT_UPDATED>
Post `{updated}` time format
[default: %H:%M:%S.txt]
* escaped with `%%`
--format-updated <FORMAT_UPDATED>
Post `{updated}` time format
[default: "%Y/%m/%d %H:%M:%S"]
* escaped with `%%`
-h, --help
Print help (see a summary with '-h')
[default: "%Y/%m/%d %H:%M:%S"]
-V, --version
Print version
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
```