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]
29 do not modify the repository, just print what would be done
30
31
32 -h, --help[=false]
33 help for prune
34
35
36 --max-repack-size=""
37 maximum size to repack (allowed suffixes: k/K, m/M, g/G, t/T)
38
39
40 --max-unused="5%"
41 tolerate given limit of unused data (absolute value in bytes with
42 suffixes k/K, m/M, g/G, t/T, a value in % or the word 'unlimited')
43
44
45 --repack-cacheable-only[=false]
46 only repack packs which are cacheable
47
48
49
51 --cacert=[]
52 file to load root certificates from (default: use system
53 certificates)
54
55
56 --cache-dir=""
57 set the cache directory. (default: use system default cache
58 directory)
59
60
61 --cleanup-cache[=false]
62 auto remove old cache directories
63
64
65 --json[=false]
66 set output mode to JSON for commands that support it
67
68
69 --key-hint=""
70 key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
71
72
73 --limit-download=0
74 limits downloads to a maximum rate in KiB/s. (default: unlimited)
75
76
77 --limit-upload=0
78 limits uploads to a maximum rate in KiB/s. (default: unlimited)
79
80
81 --no-cache[=false]
82 do not use a local cache
83
84
85 --no-lock[=false]
86 do not lock the repository, this allows some operations on
87 read-only repositories
88
89
90 -o, --option=[]
91 set extended option (key=value, can be specified multiple times)
92
93
94 --password-command=""
95 shell command to obtain the repository password from (default:
96 $RESTIC_PASSWORD_COMMAND)
97
98
99 -p, --password-file=""
100 file to read the repository password from (default:
101 $RESTIC_PASSWORD_FILE)
102
103
104 -q, --quiet[=false]
105 do not output comprehensive progress report
106
107
108 -r, --repo=""
109 repository to backup to or restore from (default:
110 $RESTIC_REPOSITORY)
111
112
113 --repository-file=""
114 file to read the repository location from (default:
115 $RESTIC_REPOSITORY_FILE)
116
117
118 --tls-client-cert=""
119 path to a file containing PEM encoded TLS client certificate and
120 private key
121
122
123 -v, --verbose[=0]
124 be verbose (specify multiple times or a level using --verbose=n,
125 max level/times is 3)
126
127
128
130 restic(1)
131
132
133
134generated by `restic generate` Jan 2017 restic backup(1)