# reddit-lemmy-importer turn json files downloaded from https://the-eye.eu/redarcs/ into lemmy comms :D this is effectively https://github.com/mesmere/RedditLemmyImporter but in js and for a different type of archive the posts/comments dump is read as a stream so handling bigger subreddits is less ram-intensive (though the final tree will still take up a good amount of ram so maybe create a big swapfile if processing large subreddits) **You must create the community and user in lemmy before you run the SQL script, since the script grabs the corresponding IDs based off the names you give for the two.** You can build the SQL script before making the comm/user though. ## usage: install dependencies `yarn install` run the program `yarn run importer --posts example-submissions.json --comments example-comments.json -c example_archive -u archive_bot -o example.sql` option 1: import your sql remotely `psql --username=lemmy --dbname=lemmy --port=[lemmy-port] --host=[ip/host] --file=example.sql` option 2: import your sql on the server `psql --username=lemmy --dbname=lemmy --file=example.sql` option 3: import your sql to a docker container `