.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "bup-ls" "1" "0.33.3" "Bup 0.33.3" "" .hy .SH NAME .PP bup-ls - list the contents of a bup repository .SH SYNOPSIS .PP bup ls [-r \f[I]host\f[R]:[\f[I]path\f[R]]] [OPTION\&...] .SH DESCRIPTION .PP \f[V]bup ls\f[R] lists files and directories in your bup repository using the same directory hierarchy as they would have with \f[V]bup-fuse\f[R](1). .PP The top level directory contains the branch (corresponding to the \f[V]-n\f[R] option in \f[V]bup save\f[R]), the next level is the date of the backup, and subsequent levels correspond to files in the backup. .PP When \f[V]bup ls\f[R] is asked to output on a tty, and \f[V]-l\f[R] is not specified, it formats the output in columns so it can list as much as possible in as few lines as possible. However, when \f[V]-l\f[R] is specified or bup is asked to output to something other than a tty (say you pipe the output to another command, or you redirect it to a file), it will print one file name per line. This makes the listing easier to parse with external tools. .PP Note that \f[V]bup ls\f[R] doesn\[cq]t show hidden files by default and one needs to use the \f[V]-a\f[R] option to show them. Files are hidden when their name begins with a dot. For example, on the topmost level, the special directories named \f[V].commit\f[R] and \f[V].tag\f[R] are hidden directories. .PP Once you have identified the file you want using \f[V]bup ls\f[R], you can view its contents using \f[V]bup join\f[R] or \f[V]git show\f[R]. .SH OPTIONS .TP -r, --remote=\f[I]host\f[R]:[\f[I]path\f[R]] list information for the repository at \f[I]path\f[R] on the indicated \f[I]host\f[R]. If \f[I]path\f[R] is omitted, uses the default path on the remote server (you still need to include the `:'). The connection to the remote server will be made by SSH. If you\[cq]d like to specify the port, user, or private key, we recommend you use the \f[V]\[ti]/.ssh/config\f[R] file (\f[V]ssh_config(5)\f[R]). .TP -s, --hash show hash for each file/directory. .TP -a, --all show hidden files. .TP -A, --almost-all show hidden files, except \[lq].\[rq] and \[lq]..\[rq]. .TP -d, --directory show information about directories themselves, rather than their contents, and don\[cq]t follow symlinks. .TP -l provide a detailed, long listing for each item. .TP -F, --classify append type indicator: dir/, symlink\[at], fifo|, socket=, and executable*. .TP --file-type append type indicator: dir/, symlink\[at], fifo|, socket=. .TP --human-readable print human readable file sizes (i.e.\ 3.9K, 4.7M). .TP --numeric-ids display numeric IDs (user, group, etc.) rather than names. .SH EXAMPLES .IP .nf \f[C] bup ls /myserver/latest/etc/profile bup ls -a / \f[R] .fi .SH SEE ALSO .PP \f[V]bup-join\f[R](1), \f[V]bup-fuse\f[R](1), \f[V]bup-ftp\f[R](1), \f[V]bup-save\f[R](1), \f[V]git-show\f[R](1), \f[V]ssh_config\f[R](5) .SH BUP .PP Part of the \f[V]bup\f[R](1) suite. .SH AUTHORS Avery Pennarun .