1 % bup-ls(1) Bup %BUP_VERSION%
2 % Avery Pennarun <apenwarr@gmail.com>
7 bup-ls - list the contents of a bup repository
11 bup ls [-s] [-a] \<paths...\>
15 `bup ls` lists files and directories in your bup repository
16 using the same directory hierarchy as they would have with
19 The top level directory contains the branch (corresponding to
20 the `-n` option in `bup save`), the next level is the date
21 of the backup, and subsequent levels correspond to files in
24 When `bup ls` is asked to output on a tty, it formats its output
25 in columns so that it can list as much as possible in as few lines
26 as possible. However, when `bup ls` is asked to output to something
27 other than a tty (say you pipe the output to another command, or you
28 redirect it to a file), it will output one file name per line. This
29 makes the listing easier to parse with external tools.
31 Note that `bup ls` doesn't show hidden files by default and one needs to use
32 the `-a` option to show them. Files are hidden when their name begins with a
33 dot. For example, on the topmost level, the special directories named `.commit`
34 and `.tag` are hidden directories.
36 Once you have identified the file you want using `bup ls`,
37 you can view its contents using `bup join` or `git show`.
42 : show hash for each file/directory.
49 bup ls /myserver/latest/etc/profile
55 `bup-join`(1), `bup-fuse`(1), `bup-ftp`(1), `bup-save`(1), `git-show`(1)
59 Part of the `bup`(1) suite.