BBACKUPQUERY(8)
π BBACKUPQUERY β Box Backup store query and file retrieval π
okay bestie, welcome to the Box Backup corner of the universe, this is the bbackupquery(8) page and it's literally your main-character tool for talking to the backup store. no cap.
β¨ SYNOPSIS β¨
bbackupquery [-q] [-c configfile] [command ...]
π¦ DESCRIPTION π¦
bbackupquery is the main way you interact with the backup store from a Box Backup client machine. it supports both interactive and batch modes of operation. slay.
you can use it to review the status of a client machine's backup store, and to get status from the store server. but the main use β the moment, the icon behaviour β is retrieving files and directories when you need them. π«Ά
bbackupquery supports interactive and batch modes of operation. interactive mode lets you chat with the server much like an interactive FTP client. it's giving very cozy, very hands-on.
batch mode is invoked by putting commands into the invocation of bbackupquery. example:
bbackupquery "list home-dirs" quit
not me reminding you: commands that contain spaces are enclosed in double quotes. π
if the quit command is omitted, then after the preceding commands are completed, bbackupquery will enter interactive mode. so it's just gonna keep the convo going, fr fr.
π OPTIONS π
-qβ quiet. suppresses status output while running. it's giving "don't talk to me, just work" energy.-cconfigfile β use configfile instead of the defaultbbackupd.conffile. can be a relative or full path. queen behaviour, flexible.
π COMMANDS π
the commands that can be used in bbackupquery are listed below. buckle up.
helpβ displays the basic help message, which gives information about the commands available inbbackupquery. use the formhelp commandto get help on a specific command. iykyk.quitβ end the session with the store server, and quitbbackupquery. the goodbye, the farewell, the closing of the group chat. πcd [options] directory-nameβ change directory. options:-dβ consider deleted directories for traversal-oβ consider old versions of directories for traversal. this option should never be useful in a correctly formed store. (so if you're using it, bestieβ¦ π)
lcd local-directory-nameβ change directory on the client machine. to list the contents of the local directory, typesh ls(on Unix-like machines).list [options] [directory-name]β thelist(or its synonymls) command lists the content of the current, or specified, directory. the options are as follows:-rβ recursively list all files-dβ list deleted files and directories-oβ list old versions of files and directories-Iβ don't display object IDs-Fβ don't display flags-tβ show file modification time (and attr mod time, if the object has attributes).-sβ show file size in blocks used on server. note that this is only a very approximate indication of local file size. like, a vibe estimate, not a measurement. π
ls [options] [directory-name]β synonym forlist.pwdβ print current directory, always relative to the backup store root.sh shell-commandβ everything after theshis passed to a shell and run. all output from the command is displayed in the client.
example: to list the contents of the current directory on the client machine type sh ls.
compare -acompare -l location-namecompare store-dir-name local-dir-nameβ compare the current data in the store with the data on the disc. please note that all the data will be downloaded from the store, so this can be a very lengthy process depending on the size of the store, and the size of the part you are comparing. it's giving "go make a snack, this is gonna take a minute." β³
options:
-aβ compare all locations.-lβ compare one backup location as specified in the configuration file. this compares one of the top level store directories.-cβ set return code. the return code is set to the following values, ifquitis the next command. so, if another command is run after thecompare, the return code will not refer to thecompare. this option is very useful for automating compares. return code values:- 1 -- no differences were found
- 2 -- differences were found
- 3 -- an error occured
get object-filename [local-filename]get -i object-id local-filenameβ gets a file from the store. object is specified as the filename within the current directory. local filename is optional. ignores old and deleted files when searching the directory for the file to retrieve.
to get an old or deleted file, use the -i option and select the object as a hex object ID (first column in listing). the local filename must be specified.
getobject object-id local-filenameβ gets the object specified by the object id (in hex) and stores the raw contents in the local file specified. note: this is only useful for debugging as it does not decode files from the stored format, which is encrypted and compressed. so like, raw dogging the bytes, basically. π₯restore [-d] directory-name local-directory-namerestore -rβ restores a directory to the local disc. the local directory specified must not exist (unless a previous restore is being restarted). the root cannot be restored -- restore locations individually.
options:
-dβ restore a deleted directory-rβ resume an interrupted restore
if a restore operation is interrupted for any reason, it can be restarted using the -r switch. restore progress information is saved in a file at regular intervals during the restore operation to allow restarts. so it's got your back, bestie. π
usage [-m]β show space used on the server for this account. display fields:- Used: total amount of space used on the server
- Old files: space used by old files
- Deleted files: space used by deleted files
- Directories: space used by the directory structure
when Used exceeds the soft limit, the server will start to remove old and deleted files until the usage drops below the soft limit. after a while, you should expect to see the usage stay at just below the soft limit. you only need more space if the space used by old and deleted files is near zero.
the -m option displays output in machine-readable form.
π BUGS π
if you find a bug in Box Backup and you want to let us know about it, join the mailing list[1] and send us a description of the problem there.
to report a bug, give us at least the following information:
- the version of Box Backup you are running
- the platform you are running on (hardware and OS), for both client and server.
- if possible attach your config files (
bbstored.conf,bbackupd.conf) to the bug report. - also attach any log file output that helps shed light on the problem you are seeing.
- and last but certainly not least, a description of what you are seeing, in as much detail as possible.
no vague "it's broken" texts pls, we need the receipts. π
π AUTHORS π
- Ben Summers
- Per Thomsen
- James O'Gorman
the literal icons who built this. periodt. π
π NOTES π
and that's the whole page, bestie. this one shipped with Box Backup 0.11, dated 06/06/2024, and it lives in the BBACKUPQUERY(8) section of the manual. go forth and query. πβ¨π
π¦ where this page comes from
- debian trixie: boxbackup-client 0.13~~git20231028.g3dd5194+ds-4 Β· BSD-3-Clause
- ubuntu questing: boxbackup-client 0.13~~git20231028.g3dd5194+ds-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms