BUPSTASH-GET(1)
π BUPSTASH-GET(1) β like, the get page, bestie π
okay so this is bupstash-get(1) from the General Commands Manual and honestly? she's a whole vibe. sit down, grab a strawberry drink π, and let's get into it.
β¨ SYNOPSIS β¨
Get data from a bupstash repository. that's it. that's the whole point.
bupstash get [OPTIONS] QUERY...
πΈ DESCRIPTION πΈ
bupstash get fetches and decrypts data that's stored in a bupstash repository, and sends it straight to stdout. slay. if the thing you asked for was saved as a directory, the command converts it into a tar stream for you. cute, right? π§
the item that gets fetched is chosen based on a simple query against the tags you specified back when you saved the data with bupstash put. so like, the query is the main character here π
π¦ QUERY LANGUAGE π¦
for the full documentation on the query language, see bupstash-query-language(7). iykyk, but also go read it.
π QUERY CACHING π
the get command uses the same query caching mechanisms as bupstash-list(1). check that page for more info on the query cache β she explains it better than i could ngl.
π SPARSE FILES π
β οΈ okay bestie, listen. when you get a directory as a tarball, sparse files are not treated specially. no special treatment, no exceptions. π
if you actually want to restore sparse files while preserving the file holes, use bupstash restore instead. periodt.
β¨ OPTIONS β¨
-r,--repository REPOβ the repository to connect to, may be of the formssh://$SERVER/$PATHfor remote repositories if ssh access is configured. if you don't specify it, it's set toBUPSTASH_REPOSITORY. π«Ά-k,--key KEYβ the key that will be used to decrypt data and metadata. if it's not set, it defaults toBUPSTASH_KEY. π--pick PATHβ fetch an individual file or sub-directory from a snapshot. very "i just want this one thing" of you. π--query-cache PATHβ path to the query-cache file. defaults to one of the following, in order, provided the appropriate environment variables are set:$BUPSTASH_QUERY_CACHE,$XDG_CACHE_HOME/.cache/bupstash/bupstash.qcacheor$HOME/.cache/bupstash/bupstash.qcache. β¨--utc-timestampsβ display and search against timestamps in utc time instead of local time. π--no-progressβ suppress progress indicators. (progress indicators are also suppressed when stderr is not an interactive terminal, so like, she already knows. π )-q,--quietβ be quiet, implies--no-progress. shhh. π€«
πΈ ENVIRONMENT πΈ
BUPSTASH_REPOSITORYβ the repository to connect to. may be of the formssh://$SERVER/$PATHfor remote repositories if ssh access is configured. π¦BUPSTASH_REPOSITORY_COMMANDβ a command to run to connect to an instance ofbupstash-serve(1). this allows more complex connections to the repository for less common use cases. fancy. πBUPSTASH_KEYβ path to the key that will be used for decrypting data and metadata. πBUPSTASH_KEY_COMMANDβ a command to run that must print the key data. can be used instead ofBUPSTASH_KEYto fetch the key from arbitrary locations such as the network or other secret storage. main character energy fr fr. π§BUPSTASH_QUERY_CACHEβ path to the query cache file to use. π
π EXAMPLES π
π« Get an item with a specific id
$ bupstash get id=14ebd2073b258b1f55c5bbc889c49db4 > ./data.file
π« Get an item by name and timestamp
$ bupstash get name=backup.tar and timestamp=2020/19/* > ./restore.tar
π« Get a file or sub-tar from a directory snapshot
$ bupstash get --pick=path/to/file.txt id=$id
$ bupstash get --pick=path/to/dir id=$id | tar ...
π« Get a tarball
the builtin directory put creates a tarball from a directory, so to extract it we use tar. iconic teamwork honestly π€
# Snapshot a directory.
$ id=$(bupstash put ./data)
# Fetch the contents of a snapshot and extract the contents with tar
$ mkdir restore
$ bupstash get id=$id | tar -C ./restore -xvf -
β SEE ALSO β
bupstash(1), bupstash-put(1), bupstash-list(1), bupstash-restore(1), bupstash-rm(1), bupstash-keyfiles(7), bupstash-query-language(7) β go read the whole friend group, they all ate π
β¨
and that's the page! brought to you by May 2025, BUPSTASH-GET(1), no cap. go get your data bestie, you're gonna slay π«Άπ
π¦ where this page comes from
- alpine 3.24: bupstash-doc 0.12.0-r7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms