1restic backup(1) restic backup(1)
2
3
4
6 restic-prune - Remove unneeded data from the repository
7
8
9
11 restic prune [flags]
12
13
14
16 The "prune" command checks the repository and removes data that is not
17 referenced and therefore not needed any more.
18
19
20
22 Exit status is 0 if the command was successful, and non-zero if there
23 was any error.
24
25
26
28 -n, --dry-run[=false] do not modify the repository, just print
29 what would be done
30
31
32 -h, --help[=false] help for prune
33
34
35 --max-repack-size="" maximum size to repack (allowed suffixes:
36 k/K, m/M, g/G, t/T)
37
38
39 --max-unused="5%" tolerate given limit of unused data (absolute
40 value in bytes with suffixes k/K, m/M, g/G, t/T, a value in % or the
41 word 'unlimited')
42
43
44 --repack-cacheable-only[=false] only repack packs which are cache‐
45 able
46
47
48
50 --cacert=[] file to load root certificates from (default: use sys‐
51 tem certificates)
52
53
54 --cache-dir="" set the cache directory. (default: use system de‐
55 fault cache directory)
56
57
58 --cleanup-cache[=false] auto remove old cache directories
59
60
61 --json[=false] set output mode to JSON for commands that support
62 it
63
64
65 --key-hint="" key ID of key to try decrypting first (default:
66 $RESTIC_KEY_HINT)
67
68
69 --limit-download=0 limits downloads to a maximum rate in KiB/s.
70 (default: unlimited)
71
72
73 --limit-upload=0 limits uploads to a maximum rate in KiB/s. (de‐
74 fault: unlimited)
75
76
77 --no-cache[=false] do not use a local cache
78
79
80 --no-lock[=false] do not lock the repository, this allows some op‐
81 erations on read-only repositories
82
83
84 -o, --option=[] set extended option (key=value, can be specified
85 multiple times)
86
87
88 --password-command="" shell command to obtain the repository pass‐
89 word from (default: $RESTIC_PASSWORD_COMMAND)
90
91
92 -p, --password-file="" file to read the repository password from
93 (default: $RESTIC_PASSWORD_FILE)
94
95
96 -q, --quiet[=false] do not output comprehensive progress report
97
98
99 -r, --repo="" repository to backup to or restore from (default:
100 $RESTIC_REPOSITORY)
101
102
103 --repository-file="" file to read the repository location from
104 (default: $RESTIC_REPOSITORY_FILE)
105
106
107 --tls-client-cert="" path to a file containing PEM encoded TLS
108 client certificate and private key
109
110
111 -v, --verbose[=0] be verbose (specify multiple times or a level
112 using --verbose=n, max level/times is 3)
113
114
115
117 restic(1)
118
119
120
121generated by restic generate Jan 2017 restic backup(1)