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       --human-readable[=false]      print sizes in human readable format
50
51
52       -l, --long[=false]      use a long listing format showing size and mode
53
54
55       --path=[]      only consider snapshots including this (absolute)  path,
56       when snapshot ID "latest" is given (can be specified multiple times)
57
58
59       --recursive[=false]       include files in subfolders of the listed di‐
60       rectories
61
62
63       --tag=[]      only consider  snapshots  including  tag[,tag,...],  when
64       snapshot ID "latest" is given (can be specified multiple times)
65
66
67

OPTIONS INHERITED FROM PARENT COMMANDS

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

SEE ALSO

152       restic(1)
153
154
155
156generated by restic generate       Jan 2017                   restic backup(1)
Impressum