bup-ls - list the contents of a bup repository
bup ls [OPTION...] <paths...>
bup ls lists files and directories in your bup repository using the same directory hierarchy as they would have with
The top level directory contains the branch (corresponding to the
-n option in
bup save), the next level is the date of the backup, and subsequent levels correspond to files in the backup.
bup ls is asked to output on a tty, and
-l 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
-l 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.
bup ls doesn't show hidden files by default and one needs to use the
-a option to show them. Files are hidden when their name begins with a dot. For example, on the topmost level, the special directories named
.tag are hidden directories.
Once you have identified the file you want using
bup ls, you can view its contents using
bup join or
bup ls /myserver/latest/etc/profile bup ls -a /
Part of the