https://github.com/arranf/lk-to-s3
A job to upload LegendKeeper exports to S3
https://github.com/arranf/lk-to-s3
Last synced: 9 months ago
JSON representation
A job to upload LegendKeeper exports to S3
- Host: GitHub
- URL: https://github.com/arranf/lk-to-s3
- Owner: arranf
- Created: 2020-06-25T08:28:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T22:42:02.000Z (over 3 years ago)
- Last Synced: 2025-07-28T14:46:12.753Z (10 months ago)
- Language: Rust
- Size: 129 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LegendKeeper to S3
This is a simple Rust cron job to on a regular basis request a JSON export of a LK project and store it in S3.
It requires manual rotation of your JWT and access to your email via IMAP in order to get the export link.
## To Use
Either setup a dotenv file by copying `.env.example` to `.env` and replacing the values with actual values, _or_ set the environment variables listed in `.env.example` manually.
Ensure your environment has AWS credentials stored in a standard location, either as environment variables ( `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` ) or in `~/.aws`.
Build the project with `cargo build --release` ([more details on Cargo can be found here](https://doc.rust-lang.org/cargo/)).
Run the project.
## Dockerfile
A Dockerfile exists to run the project on ARM hardware (read: Raspberry Pis).
## TODO
- [ ] Settle on either using reqwest or ureq
- [ ] Investigate automated JWT fetching