.TH ARCHIVE-PUBMED 1 2020-02-09 NCBI "NCBI Entrez Direct User's Manual" .SH NAME archive\-pubmed \- populate a local NCBI PubMed archive from scratch .SH SYNOPSIS .B archive\-pubmed [\|[\|\fB\-path\fP\|]\ \fIdir\fP [\|[\|\fB\-temp\fP|\fB\-work\fP|\fB\-working\fP\|]\ \fIdir\fP\|]\|] .SH DESCRIPTION \fBarchive\-pubmed\fP prepares a directory to hold a local PubMed archive, then downloads a full database dump from NCBI's servers, organizes it into an \fBrchive\fP(1) trie, and refreshes the versioned records. .SH OPTIONS .TP [\|\fB\-path\fP\|]\ \fIdir\fP Place the local archive in \fIdir\fP. .TP [\|\fB\-temp\fP|\fB\-work\fP|\fB\-working\fP\|]\ \fIdir\fP Place intermediate subtrees in \fIdir\fP. .SH ENVIRONMENT .TP .B EDIRECT_PUBMED_MASTER Local archive directory to use in the absence of \fB\-path\fP. Expected to hold an absolute path; mandatory when not supplying a path on the command line. .TP .B EDIRECT_PUBMED_WORKING Directory to hold intermediate subtrees in the absence of \fB\-temp\fP|\fB\-work\fP|\fB\-working\fP. Expected to hold an absolute path. Defaults to the primary local archive directory when not set. .SH SEE ALSO .BR download\-pubmed (1), .BR expand\-current (1), .BR fetch\-pubmed (1), .BR index\-pubmed (1), .BR phrase\-search (1), .BR pm\-prepare (1), .BR pm\-refresh (1), .BR pm\-stash (1), .BR rchive (1).