1restic backup(1)                                              restic backup(1)
2
3
4

NAME

6       restic-ls - List files in a snapshot
7
8
9

SYNOPSIS

11       restic ls [flags] snapshotID [dir...]
12
13
14

DESCRIPTION

16       The "ls" command lists files and directories in a snapshot.
17
18
19       The special snapshot ID "latest" can be used to list files and directo‐
20       ries of the latest snapshot in the repository. The --host flag  can  be
21       used  in  conjunction  to select the latest snapshot originating from a
22       certain host only.
23
24
25       File listings can optionally be filtered by directories. Any positional
26       arguments  after  the snapshot ID are interpreted as absolute directory
27       paths, and only files inside those directories will be listed.  If  the
28       --recursive  flag  is  used, then the filter will allow traversing into
29       matching directories' subfolders.  Any directory paths  specified  must
30       be  absolute  (starting  with  a path separator); paths use the forward
31       slash '/' as separator.
32
33
34

EXIT STATUS

36       Exit status is 0 if the command was successful, and non-zero  if  there
37       was any error.
38
39
40

OPTIONS

42       -h, --help[=false]      help for ls
43
44
45       -H, --host=[]      only consider snapshots for this host, when snapshot
46       ID "latest" is given (can be specified multiple times)
47
48
49       -l, --long[=false]      use a long listing format showing size and mode
50
51
52       --path=[]      only consider snapshots including this (absolute)  path,
53       when snapshot ID "latest" is given (can be specified multiple times)
54
55
56       --recursive[=false]       include files in subfolders of the listed di‐
57       rectories
58
59
60       --tag=[]      only consider  snapshots  including  tag[,tag,...],  when
61       snapshot ID "latest" is given (can be specified multiple times)
62
63
64

OPTIONS INHERITED FROM PARENT COMMANDS

66       --cacert=[]      file to load root certificates from (default: use sys‐
67       tem certificates)
68
69
70       --cache-dir=""      set the cache directory. (default: use  system  de‐
71       fault cache directory)
72
73
74       --cleanup-cache[=false]      auto remove old cache directories
75
76
77       --compression=auto      compression mode (only available for repository
78       format version 2), one of (auto|off|max)
79
80
81       --insecure-tls[=false]      skip TLS certificate verification when con‐
82       necting to the repository (insecure)
83
84
85       --json[=false]       set  output mode to JSON for commands that support
86       it
87
88
89       --key-hint=""      key ID of key  to  try  decrypting  first  (default:
90       $RESTIC_KEY_HINT)
91
92
93       --limit-download=0       limits  downloads  to a maximum rate in KiB/s.
94       (default: unlimited)
95
96
97       --limit-upload=0      limits uploads to a maximum rate in  KiB/s.  (de‐
98       fault: unlimited)
99
100
101       --no-cache[=false]      do not use a local cache
102
103
104       --no-lock[=false]      do not lock the repository, this allows some op‐
105       erations on read-only repositories
106
107
108       -o, --option=[]      set extended option (key=value, can  be  specified
109       multiple times)
110
111
112       --pack-size=0       set target pack size in MiB, created pack files may
113       be larger (default: $RESTIC_PACK_SIZE)
114
115
116       --password-command=""      shell command to obtain the repository pass‐
117       word from (default: $RESTIC_PASSWORD_COMMAND)
118
119
120       -p,  --password-file=""       file to read the repository password from
121       (default: $RESTIC_PASSWORD_FILE)
122
123
124       -q, --quiet[=false]      do not output comprehensive progress report
125
126
127       -r, --repo=""      repository to backup to or  restore  from  (default:
128       $RESTIC_REPOSITORY)
129
130
131       --repository-file=""       file  to  read  the repository location from
132       (default: $RESTIC_REPOSITORY_FILE)
133
134
135       --tls-client-cert=""      path to a file  containing  PEM  encoded  TLS
136       client certificate and private key
137
138
139       -v,  --verbose[=0]       be  verbose (specify multiple times or a level
140       using --verbose=n``, max level/times is 2)
141
142
143

SEE ALSO

145       restic(1)
146
147
148
149generated by restic generate       Jan 2017                   restic backup(1)
Impressum