summaryrefslogtreecommitdiffstats
path: root/rust/README.export.md
diff options
context:
space:
mode:
Diffstat (limited to 'rust/README.export.md')
-rw-r--r--rust/README.export.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/rust/README.export.md b/rust/README.export.md
index 97c2c028..f9965a6f 100644
--- a/rust/README.export.md
+++ b/rust/README.export.md
@@ -1,13 +1,14 @@
-First create ident files:
+First create ident files, following `../extra/sql_dumps/`.
- psql fatcat < ../extra/quick_dump.sql
-
-Then dump:
+Then, to dump locally to stdout:
cat /tmp/fatcat_ident_releases.tsv | ./target/debug/fatcat-export releases
-Or, perhaps, in production:
+Or, in production:
- cat /tmp/fatcat_ident_releases.tsv | ./target/release/fatcat-export release --expand files,filesets,webcaptures,container -j8 | pv -l | gzip > release_export_expanded.json.gz
+ cat /tmp/fatcat_ident_releases.tsv | ./target/release/fatcat-export release --expand files,filesets,webcaptures,container -j8 | pv -l | gzip > /srv/fatcat/snapshots/release_export_expanded.json.gz
+ cat /tmp/fatcat_ident_releases.tsv | ./target/release/fatcat-export release -j8 | pv -l | gzip > /srv/fatcat/snapshots/release_export.json.gz
+ cat /tmp/fatcat_ident_containers.tsv | ./target/release/fatcat-export container -j8 | pv -l | gzip > /srv/fatcat/snapshots/container_export.json.gz
+ cat /tmp/fatcat_ident_files.tsv | ./target/release/fatcat-export file -j8 | pv -l | gzip > /srv/fatcat/snapshots/file_export.json.gz