From 22df32157f4846a4069d76c47f0adb3ad073a7bc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 3 Jun 2019 20:23:32 -0700 Subject: move export README info to sql_dumps doc --- rust/README.export.md | 17 ----------------- rust/README.md | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 rust/README.export.md (limited to 'rust') diff --git a/rust/README.export.md b/rust/README.export.md deleted file mode 100644 index 44ca8afd..00000000 --- a/rust/README.export.md +++ /dev/null @@ -1,17 +0,0 @@ - -First create ident files, following `../extra/sql_dumps/README.md`. - -Then, to dump locally to stdout: - - cat /tmp/fatcat_ident_releases.tsv | ./target/debug/fatcat-export releases - -Or, in production, as the fatcat user: - - cat /tmp/fatcat_ident_releases.tsv | ./target/release/fatcat-export release --expand files,filesets,webcaptures,container -j8 | pigz > /srv/fatcat/snapshots/release_export_expanded.json.gz - cat /tmp/fatcat_ident_releases.tsv | ./target/release/fatcat-export release -j8 | pigz > /srv/fatcat/snapshots/release_export.json.gz - cat /tmp/fatcat_ident_creators.tsv | ./target/release/fatcat-export creator -j8 | pigz > /srv/fatcat/snapshots/creator_export.json.gz - cat /tmp/fatcat_ident_containers.tsv | ./target/release/fatcat-export container -j8 | pigz > /srv/fatcat/snapshots/container_export.json.gz - cat /tmp/fatcat_ident_files.tsv | ./target/release/fatcat-export file -j8 | pigz > /srv/fatcat/snapshots/file_export.json.gz - cat /tmp/fatcat_ident_filesets.tsv | ./target/release/fatcat-export fileset -j8 | pigz > /srv/fatcat/snapshots/fileset_export.json.gz - cat /tmp/fatcat_ident_webcaptures.tsv | ./target/release/fatcat-export webcapture -j8 | pigz > /srv/fatcat/snapshots/webcapture_export.json.gz - diff --git a/rust/README.md b/rust/README.md index e191d03e..cba926dc 100644 --- a/rust/README.md +++ b/rust/README.md @@ -5,7 +5,7 @@ Rust implementation of fatcat API server. Commands include: - `fatcat-auth`: privileged command to manage authentication keys, tokens, and accounts. Useful to generate admin accounts, new signing keys, etc. - `fatcat-export`: high-speed JSON export tool, which talks directly to the - database (instead of going through the API). See `README.export.md`. + database (instead of going through the API). The `fatcat-api-spec` crate is generated from the openapi/swagger spec and contains Rust models, response types, and endpoint definitions (but not -- cgit v1.2.3