blib/lib/App/FileSync/I18N/en.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/App/FileSync/Constants.pm ↑ Summary
1 package App::FileSync::I18N::en;
2  
3 # The English catalogue: every user-facing string in the distribution, by key.
4 # Placeholders are %{name}FMT (any sprintf conversion); see App::FileSync::I18N.
5 # Keys are grouped by the module that raises them.
6  
7 445 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 445 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 445 ▶use version; our $VERSION = version->declare('0.002.2');
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 445 our %MESSAGES = (
13 # ---------------------------------------------------------- i18n itself
14 'i18n.bad_language' => "Bad language code '%{language}s' (want two or three lower-case letters)",
15 'i18n.bad_catalogue' => "The catalogue for '%{language}s' is not a hash",
16  
17 # -------------------------------------------------------- arguments
18 # %{what}s is args.param, or the command-line option the value came from.
19 'args.invalid' => '%{routine}s: %{reason}s',
20 'args.param' => q{%{routine}s: '%{param}s'},
21 'args.unknown' => '%{what}s is not a known argument',
22 'args.missing' => '%{what}s is required',
23 'args.not_number' => q{%{what}s must be a number, not '%{value}s'},
24 'args.not_integer' => q{%{what}s must be a whole number, not '%{value}s'},
25 'args.too_small' => '%{what}s must be at least %{min}s, not %{value}s',
26 'args.too_large' => '%{what}s must be no more than %{max}s, not %{value}s',
27 'args.too_short' => { _by => 'count', one => '%{what}s must be at least %{count}d character long', other => '%{what}s must be at least %{count}d characters long' },
28 'args.too_long' => { _by => 'count', one => '%{what}s must be at most %{count}d character long', other => '%{what}s must be at most %{count}d characters long' },
29 'args.too_few' => { _by => 'count', one => '%{what}s must have at least %{count}d entry', other => '%{what}s must have at least %{count}d entries' },
30 'args.too_many' => { _by => 'count', one => '%{what}s must have at most %{count}d entry', other => '%{what}s must have at most %{count}d entries' },
31 'args.not_one_of' => q{%{what}s must be one of %{list}s, not '%{value}s'},
32 'args.bad_form' => q{%{what}s is not in the expected form: '%{value}s'},
33  
34 # ------------------------------------------------------- shared words
35 'word.file' => { _by => 'count', one => '%{count}d file', other => '%{count}d files' },
36 'word.empty_dir' => { _by => 'count', one => '%{count}d empty dir', other => '%{count}d empty dirs' },
37  
38 # ---------------------------------------------------- path validation
39 'path.missing' => 'missing path',
40 'path.not_text' => 'path is not text',
41 'path.empty' => 'empty path',
42 'path.too_long' => 'path is too long',
43 'path.absolute' => 'absolute path',
44 'path.drive' => 'drive-relative path',
45 'path.backslash' => 'backslash in path',
46 'path.nul' => 'NUL in path',
47 'path.control' => 'control character in path',
48 'path.empty_component' => 'empty path component',
49 'path.dot_component' => 'dot path component',
50 'path.parent_component' => 'parent path component',
51 'path.component_too_long' => 'path component is too long',
52 'path.unsafe' => "Unsafe path '%{path}s': %{reason}s",
53  
54 # ------------------------------------------------------ id validation
55 'id.repo_name' => 'repo name',
56 'id.client_id' => 'client id',
57 'id.missing' => 'missing %{what}s',
58 'id.not_text' => '%{what}s is not text',
59 'id.empty' => 'empty %{what}s',
60 'id.too_long' => '%{what}s is too long',
61 'id.bad' => "bad %{what}s '%{value}s'",
62  
63 # ------------------------------------------------------- date parsing
64 'when.bad' => "Bad %{option}s '%{value}s' (use YYYY-MM-DD or an epoch)",
65  
66 # ------------------------------------------------------- file system
67 'io.read' => 'Cannot read %{path}s: %{error}s',
68 'io.write' => 'Cannot write %{path}s: %{error}s',
69 'io.append' => 'Cannot append to %{path}s: %{error}s',
70 'io.temp' => 'Cannot create a temporary file in %{path}s: %{error}s',
71 'io.rename' => 'Cannot move %{from}s to %{to}s: %{error}s',
72 'io.remove' => 'Cannot remove %{path}s: %{error}s',
73 'io.replace_dir' => 'Cannot replace non-empty directory %{path}s',
74 'io.copy' => 'Cannot copy %{from}s to %{to}s: %{error}s',
75 'io.mkdir' => 'Cannot create directory %{path}s: %{error}s',
76 'io.seek' => 'Cannot seek in %{path}s: %{error}s',
77 'io.utime' => 'Cannot set the modification time of %{path}s: %{error}s',
78 'io.short' => 'Unexpected end of %{path}s',
79  
80 # ------------------------------------------------------- configuration
81 'config.no_home' => 'Cannot determine your home directory; set FILESYNC_HOME',
82 'config.parse' => 'Cannot parse %{path}s: %{error}s',
83 'config.not_object' => '%{path}s is not a JSON object',
84 'config.no_repo' => "No such repo '%{repo}s' under %{root}s (run filesync-admin repo create)",
85  
86 # ------------------------------------------------------------ scanning
87 'scan.unreadable' => 'cannot read: %{error}s',
88 'scan.cannot_stat' => 'cannot stat: %{error}s',
89 'scan.cannot_list' => 'cannot read directory: %{error}s',
90 'scan.symlink' => 'symbolic link',
91 'scan.special' => 'not a regular file',
92  
93 # --------------------------------------------------------------- trash
94 'trash.move' => 'Cannot move %{from}s to %{to}s: %{error}s',
95 'trash.missing' => 'Trash: %{path}s is not there',
96 'trash.exists' => 'Trash: refusing to overwrite %{path}s',
97 'trash.cannot_stat' => 'Trash: cannot stat %{path}s: %{error}s',
98 'trash.not_regular' => 'Trash: %{path}s is not a regular file',
99  
100 # -------------------------------------------------------------- verify
101 'verify.no_root' => 'Verify: %{root}s is not a directory',
102 'verify.type_changed' => 'type changed',
103  
104 # --------------------------------------------------------------- merge
105 'merge.master' => 'master',
106 'merge.deleted_changed' => '%{path}s: deleted on %{client}s but changed on the master; restored from the master',
107 'merge.changed_deleted' => '%{path}s: changed on %{client}s but deleted on the master; restored to the master',
108 'merge.conflict_copy' => '%{path}s: changed on both %{client}s and the master; %{kept}s version kept, %{other}s version saved as %{copy}s',
109 'merge.conflict_dir' => '%{path}s: changed on both %{client}s and the master; %{kept}s version kept, the empty directory on the other side was discarded',
110 'merge.replica_overwritten' => '%{path}s: changed on the replica; overwritten from the master',
111 'merge.replica_removed' => '%{path}s: removed on the replica; not in the master',
112 'merge.too_many' => 'refusing to delete %{count}d files (limit is %{max}d); rerun with --force if this is intended',
113 'merge.too_many_percent' => 'refusing to delete %{count}d of %{known}d known files (limit is %{percent}s%%); rerun with --force if this is intended',
114  
115 # --------------------------------------------------------------- delta
116 'delta.bad_count' => 'Bad signature block count',
117 'delta.bad_length' => 'Signature is %{length}d bytes, expected %{expected}d',
118 'delta.no_output' => 'Delta: no output handle',
119 'delta.no_block' => 'Delta: signature has no block length',
120 'delta.write' => 'Cannot write the delta: %{error}s',
121 'delta.read' => 'Cannot read the delta: %{error}s',
122 'delta.bad_record' => "Bad delta record '%{type}s'",
123 'delta.write_restored' => 'Cannot write the restored file: %{error}s',
124  
125 # ------------------------------------------------------------ protocol
126 'protocol.closed' => 'Protocol: connection is closed',
127 'protocol.write_failed' => 'Protocol: cannot write to the connection: %{error}s',
128 'protocol.malformed' => 'Protocol: malformed message from the peer: %{error}s',
129 'protocol.not_object' => 'Protocol: message is not an object',
130 'protocol.bad_length' => 'Protocol: bad payload length',
131 'protocol.inflate' => 'Protocol: cannot decompress the payload',
132 'protocol.corrupt' => 'Protocol: corrupt compressed payload',
133 'protocol.too_large' => 'Protocol: compressed payload expands beyond the limit',
134 'protocol.negative' => 'Protocol: negative payload length',
135 'protocol.read_failed' => 'Protocol: read error: %{error}s',
136 'protocol.eof' => 'Protocol: connection closed by the peer',
137  
138 # --------------------------------------------------------------- store
139 'store.bad_client' => 'Store: %{reason}s',
140 'store.bad_repo' => 'Store: %{reason}s',
141 'store.symlink' => 'Refusing to write through symlinked directory %{path}s',
142 'store.no_master' => 'Master directory is missing: %{path}s',
143  
144 'admin.bad_repo' => 'Invalid repo name: %{reason}s',
145 'admin.bad_client' => 'Invalid client id: %{reason}s',
146 'admin.bad_role' => q{Invalid role '%{role}s' (want %{roles}s)},
147 'admin.repo_exists' => q{Repo '%{repo}s' already exists at %{path}s},
148 'admin.root_unwritable' => q{Server root '%{root}s' is not writable by this account (%{blocked}s); chown it to the account that runs filesync-admin and filesync-server, or use --root elsewhere},
149 'admin.locked' => q{Another sync session holds the lock for repo '%{repo}s'},
150 'admin.unsafe_path' => q{Unsafe path '%{path}s': %{reason}s},
151 'admin.no_versions' => q{No trashed version of '%{path}s' in repo '%{repo}s'},
152 'admin.bad_date' => q{Bad --date '%{date}s' (want YYYY-MM-DD)},
153 'admin.no_version_on' => q{No version of '%{path}s' in the trash for %{date}s},
154 'admin.not_dir' => 'Restore target %{path}s is not a directory',
155 'admin.exists' => 'Refusing to overwrite %{path}s; move it aside first',
156  
157 'server.missing' => 'Server: no %{what}s given',
158 'server.bad_role' => q{Server: bad role '%{role}s'},
159 'server.bad_id' => 'Server: %{reason}s',
160 'server.no_connection' => 'Server: no connection',
161 'server.locked' => q{Another sync session holds the lock for repo '%{repo}s'},
162 'server.unknown_error' => 'unknown server error',
163 'server.root_placeholder' => '[server root]',
164 'server.journal_failed' => 'cannot journal the failed session: %{error}s',
165 'server.not_allowed' => q{Client '%{client}s' is not allowed on repo '%{repo}s'},
166 'server.wrong_role' => q{Client '%{client}s' is registered as '%{registered}s', not '%{asked}s'},
167 'server.proto' => 'Unsupported protocol version',
168 'server.pinned' => q{Session is pinned to %{field}s '%{expected}s' but the client asked for '%{given}s'},
169 'server.unknown' => q{Unknown command '%{command}s'},
170 'server.manifest_list' => 'Manifest is not a list',
171 'server.manifest_entry' => 'Manifest entry is not an object',
172 'server.manifest_path' => 'Manifest path rejected: %{reason}s',
173 'server.manifest_field' => q{Bad manifest field '%{field}s' for %{path}s},
174 'server.refused' => '%{reason}s',
175 'server.op.read' => 'Read',
176 'server.op.write' => 'Write',
177 'server.op.delta' => 'Delta write',
178 'server.op.pull' => 'Signature upload',
179 'server.op.mkdir' => 'Directory creation',
180 'server.op.delete' => 'Deletion',
181 'server.op.ack' => 'Ack',
182 'server.unplanned' => q{%{what}s of unplanned path '%{path}s'},
183 'server.not_planned' => q{%{what}s of '%{path}s' is not in the plan},
184 'server.bad_field' => q{Bad '%{field}s' for '%{path}s'},
185 'server.conflict_name' => q{Conflict copy of '%{path}s' must be named '%{expected}s'},
186 'server.no_put' => q{Data for '%{path}s' without a put},
187 'server.too_large' => q{Chunk for '%{path}s' is too large},
188 'server.bad_copy' => q{Delta copy outside '%{path}s'},
189 'server.bad_signature' => q{Bad signature for '%{path}s'},
190 'server.no_signature' => q{Delta read for '%{path}s' without a signature},
191 'server.no_delta' => q{Delta data for '%{path}s' without a delta},
192 'server.bad_ack' => q{Ack for '%{path}s' does not match its planned action},
193 'server.conflict_unsafe' => 'Unsafe conflict name: %{reason}s',
194 'server.conflict_same' => q{Conflict name for '%{path}s' is the same as the path},
195 'server.conflict_exists' => 'Conflict copy already exists: %{path}s',
196 'server.conflict_move' => 'Cannot preserve %{path}s as %{to}s: %{error}s',
197 'server.unfinished' => 'Session ended before all actions completed: %{paths}s',
198 'server.busy' => q{Already receiving '%{path}s'},
199 'server.overflow' => q{Upload of '%{path}s' is larger than announced},
200 'server.hash_mismatch' => q{Hash mismatch for '%{path}s': expected %{expected}s, got %{got}s},
201 'server.size_mismatch' => q{Size mismatch for '%{path}s': expected %{expected}s, got %{got}s},
202 'server.cannot_stat' => 'Cannot stat %{path}s: %{error}s',
203 'server.not_file' => q{Cannot send a directory for '%{path}s'},
204  
205 'forced.program' => q{unexpected program '%{program}s' in the remote command},
206 'forced.argument' => q{unexpected argument '%{token}s' in the remote command},
207 'forced.no_value' => 'the remote command gives --%{flag}s without a value',
208 'forced.flag' => 'the remote command may not set --%{flag}s',
209 'forced.proto' => q{the remote command asks for protocol '%{proto}s'},
210 'forced.pinned' => q{the remote command asks for %{field}s '%{value}s' but this key is pinned to '%{expected}s'},
211  
212 'client.no_config' => 'Client: no config',
213 'client.bad_name' => 'Client: %{reason}s',
214 'client.no_repo' => q{No repo '%{repo}s' in %{path}s},
215 'client.bad_root' => q{Sync root for '%{repo}s' is not a directory: %{root}s},
216 'client.no_marker' => 'Sync root %{root}s has no .filesync-root marker (unmounted drive?); refusing to sync',
217 'client.locked' => q{Another filesync run holds the lock for '%{repo}s'},
218 'client.no_client_id' => 'No client_id in the client configuration',
219 'client.refused' => 'Server refused the session: %{reason}s',
220 'client.unknown_reason' => 'unknown error',
221 'client.skipped' => '%{path}s: skipped (%{reason}s)',
222 'client.verbose_action' => ' %{verb}s %{path}s',
223 'client.unknown_action' => q{Unknown action '%{action}s' for %{path}s},
224 'client.req.plan' => '%{reason}s',
225 'client.req.end' => 'Server did not accept the end of the session: %{reason}s',
226 'client.req.manifest' => 'Server rejected the manifest: %{reason}s',
227 'client.req.delete' => 'Cannot delete %{path}s on the server: %{reason}s',
228 'client.req.ack_delete' => 'Server did not accept the deletion of %{path}s: %{reason}s',
229 'client.req.ack_dir' => 'Server did not accept directory %{path}s: %{reason}s',
230 'client.req.ack' => 'Server did not accept %{path}s: %{reason}s',
231 'client.req.get' => 'Cannot read %{path}s from the server: %{reason}s',
232 'client.req.mkdir' => 'Cannot create directory %{path}s on the server: %{reason}s',
233 'client.req.put' => 'Server refused %{path}s: %{reason}s',
234 'client.req.chunk' => 'Server rejected data for %{path}s: %{reason}s',
235 'client.req.store' => 'Cannot store %{path}s on the server: %{reason}s',
236 'client.req.signature' => 'Server refused the signature for %{path}s: %{reason}s',
237 'client.req.delta' => 'Server refused the delta for %{path}s: %{reason}s',
238 'client.req.delta_data' => 'Server rejected delta data for %{path}s: %{reason}s',
239 'client.hash_mismatch' => 'Hash mismatch while copying %{path}s: expected %{expected}s, got %{got}s',
240 'client.size_mismatch' => 'Size mismatch while copying %{path}s: expected %{expected}s, got %{got}s',
241 'client.bad_copy' => 'Bad copy instruction for %{path}s',
242 'client.bad_op' => 'Unknown delta instruction for %{path}s',
243 'client.conflict_exists' => 'Conflict copy already exists: %{path}s',
244 'client.conflict_move' => 'Cannot preserve %{path}s as %{to}s: %{error}s',
245 'client.unsafe' => q{Unsafe path '%{path}s': %{reason}s},
246 'client.cannot_stat' => 'Cannot stat %{path}s: %{error}s',
247 'client.need_server_root' => 'Repo %{repo}s needs a server_root for the local transport',
248 'client.need_server' => 'Repo %{repo}s needs a server (user@host) for the ssh transport',
249 'client.bad_transport' => q{Unknown transport '%{transport}s' for repo %{repo}s},
250 'client.record_failed' => 'cannot record this run in %{path}s: %{error}s',
251 'client.dir_replaced' => q{%{path}s was a directory holding files the sync does not track (such as ignored ones); it was moved to the trash in %{trash}s before the file replaced it},
252 'client.no_versions' => q{No trashed version of '%{path}s' for repo '%{repo}s' in %{trash}s},
253 'client.not_dir' => 'Restore target %{path}s is not a directory',
254 'client.exists' => 'Refusing to overwrite %{path}s; move it aside or use --to DIR',
255 'client.not_replica' => q{Repo '%{repo}s' is a client, not a replica; only a replica keeps snapshots},
256  
257 'transport.missing' => '%{transport}s transport: no %{what}s given',
258 'transport.bad_value' => q{SSH transport: bad %{field}s '%{value}s'},
259 'transport.bad_id' => 'SSH transport: %{reason}s',
260  
261 'process.spawn' => q{Cannot start '%{program}s': %{error}s},
262 'process.inherit' => 'Cannot stop a child process inheriting a pipe: %{error}s',
263  
264 'cli.help.client' => <<'USAGE',
265 filesync - keep a directory in step with a master copy
266  
267 filesync init --repo NAME --root DIR --server USER@HOST [--remote-repo NAME]
268 [--id ID] [--role client|replica] [--port N] [--identity FILE]
269 [--accept-host-key] [--known-hosts FILE] [--server-command PATH]
270 [--snapshot-mode hardlink|copy]
271 filesync init --repo NAME --root DIR --transport local --server-root DIR
272 [--remote-repo NAME] [--id ID] [--role client|replica]
273 filesync sync [--repo NAME]... [--dry-run] [--force] [--verbose] [--quiet]
274 [--json] [--no-prune] [--no-delta]
275 filesync status [--repo NAME] [--json]
276 filesync log [--repo NAME] [-n N] [--since YYYY-MM-DD|EPOCH]
277 [--until YYYY-MM-DD|EPOCH] [--exit N]... [--warnings] [--json]
278 filesync settings [--config FILE] [--json]
279 filesync verify [--repo NAME] [--deep] [--json]
280 filesync restore PATH [--repo NAME] [--to DIR] [--list]
281 filesync snapshot [--repo NAME] [--keep N]
282 filesync snapshot list [--repo NAME]
283 filesync snapshot restore DATE [PATH] [--repo NAME] [--to DIR]
284 filesync version
285  
286 The sync root must contain the .filesync-root marker created by "filesync init".
287 Diagnostics go to stderr; settings are read from ~/.conf/app-filesync.json or
288 $FILESYNC_SETTINGS (log_level, log_format, log_file, ssh_identity,
289 ssh_known_hosts, server_command). "filesync settings" prints the effective
290 values and where each came from. Per-repo values from "filesync init" win;
291 port and host_key_checking exist per repo only and are marked [repo only].
292  
293 Exit codes: 0 ok, 1 fatal, 2 another run holds the lock, 3 completed with
294 warnings, 4 verification found drift.
295  
296 "filesync init --help" explains the options init takes.
297 USAGE
298 'cli.help.init' => <<'USAGE',
299 filesync init - register a directory in this client's configuration
300  
301 filesync init --repo NAME --root DIR --server USER@HOST [options]
302 filesync init --repo NAME --root DIR --transport local --server-root DIR
303  
304 --repo NAME the repo name, as the server knows it
305 --root DIR the local directory to keep in step (created if needed)
306 --server HOST the ssh server, as host or user@host
307 --server-root DIR the server root, for --transport local
308 --remote-repo NAME the repo name on the server, if it differs from --repo
309 --id ID the id the server knows this client by
310  
311 The id defaults to this machine's host name. That is the name the server
312 keeps this client's base, journal entries and conflict copies under, and the
313 name "filesync-admin client allow" must list. Pass --id only to override it
314 - for two machines with the same host name, say. It is not a login, and it
315 does not divide the repo: every client of a repo syncs the whole tree.
316  
317 --transport ssh|local how the server is reached; the default is ssh, or
318 local when --server-root is given
319 --role client|replica what this client may do; default client
320 --identity FILE ssh identity file
321 --known-hosts FILE ssh known_hosts file
322 --port N ssh port
323 --accept-host-key trust an unknown host key on first use
324 --server-command PATH the server program to run over ssh
325 --snapshot-mode MODE hardlink or copy, for "filesync snapshot"
326 --config FILE the client configuration file to write
327  
328 Exit codes: 0 ok, 1 fatal.
329 USAGE
330 'cli.help.admin' => <<'USAGE',
331 filesync-admin --root DIR <command>
332  
333 repo create NAME [--trash-days N] [--max-deletes N] [--max-delete-percent N]
334 [--ignore PATTERN]...
335 repo list
336 repo show NAME
337 client allow ID --repo NAME [--role client|replica]
338 client list --repo NAME
339 client forget ID --repo NAME
340 reindex NAME [--dry-run] [--json]
341 verify NAME [--deep] [--sample N] [--json]
342 restore NAME PATH [--to DIR] [--list] [--date YYYY-MM-DD]
343 log NAME... [-n N] [--client ID] [--since YYYY-MM-DD|EPOCH]
344 [--until YYYY-MM-DD|EPOCH] [--exit N]... [--warnings] [--json]
345  
346 repo create options:
347 --trash-days N days the server keeps deleted files; default 30,
348 0 keeps them forever
349 --max-deletes N most files one sync may delete (N itself is
350 allowed); default 200, 0 switches this limit off
351 --max-delete-percent N most deletions in one sync, as a percentage of
352 the files the client last synced, rounded down
353 but at least 1; 0 to 100, default 10, 0 switches
354 this limit off
355 A sync stops at whichever limit it reaches first, unless it is run with
356 "filesync sync --force".
357  
358 Exit codes: 0 ok, 1 fatal, 4 verification found drift.
359 USAGE
360  
361 'cli.unknown_command' => q{Unknown command '%{command}s' (try: %{program}s help)},
362 'cli.usage' => 'Usage: %{usage}s',
363 'cli.unexpected' => '%{command}s: unexpected arguments: %{args}s',
364 'cli.required' => '%{command}s: %{what}s is required',
365 'cli.positive' => '%{command}s: %{option}s must be positive',
366 'cli.exit_range' => 'log: --exit must be between 0 and %{max}d',
367 'cli.no_repos' => 'No repos configured; run filesync init first',
368 'cli.no_repo' => q{No repo '%{repo}s' in the configuration},
369 'cli.need_repo' => '%{command}s: --repo is required when several repos are configured',
370 'cli.unknown_snapshot' => q{Unknown snapshot command '%{verb}s' (try: filesync help)},
371 'cli.repo_error' => '%{repo}s: %{error}s',
372 'cli.warning' => ' warning: %{warning}s',
373 'cli.never' => 'never',
374 'cli.version' => 'filesync %{version}s (protocol %{proto}d)',
375  
376 'cli.usage.server' => 'filesync-server [--root DIR] --repo NAME --client ID --role client|replica [--proto 2]',
377 'cli.usage.init' => 'filesync init --repo NAME --root DIR ...',
378 'cli.usage.sync' => 'filesync sync [--repo NAME] [--dry-run] [--force]',
379 'cli.usage.status' => 'filesync status [--repo NAME] [--json]',
380 'cli.usage.log' => 'filesync log [--repo NAME] [-n N] [--since DATE] [--until DATE] [--exit N] [--warnings] [--json]',
381 'cli.usage.settings' => 'filesync settings [--config FILE] [--json]',
382 'cli.usage.verify' => 'filesync verify [--repo NAME] [--deep] [--json]',
383 'cli.usage.restore' => 'filesync restore PATH [--repo NAME] [--to DIR] [--list]',
384 'cli.usage.snapshot' => 'filesync snapshot [--repo NAME] [--keep N]',
385 'cli.usage.snapshot_list' => 'filesync snapshot list [--repo NAME]',
386 'cli.usage.snapshot_restore' => 'filesync snapshot restore DATE [PATH] [--repo NAME] [--to DIR]',
387 'cli.usage.repo_create' => 'filesync-admin repo create NAME [--trash-days N] ...',
388 'cli.usage.admin_log' => 'filesync-admin log NAME... [-n N] [--client ID] [--since DATE] [--until DATE] [--exit N] [--warnings] [--json]',
389 'cli.usage.reindex' => 'filesync-admin reindex NAME [--dry-run] [--json]',
390 'cli.usage.admin_verify' => 'filesync-admin verify NAME [--deep] [--sample N] [--json]',
391 'cli.usage.admin_restore' => 'filesync-admin restore NAME PATH [--to DIR] [--list] [--date YYYY-MM-DD]',
392 'cli.usage.client_allow' => 'filesync-admin client allow ID --repo NAME [--role R]',
393 'cli.usage.client_list' => 'filesync-admin client list --repo NAME',
394 'cli.usage.client_forget' => 'filesync-admin client forget ID --repo NAME',
395  
396 'cli.server.bad_role' => q{filesync-server: bad role '%{role}s'},
397 'cli.server.proto' => q{filesync-server: unsupported protocol '%{proto}s'},
398 'cli.server.forced' => 'filesync-server: %{reason}s',
399 'cli.server.tty' => 'filesync-server speaks the sync protocol on stdin and is not for interactive use; it is the forced command in authorized_keys',
400  
401 'cli.init.bad_id' => 'init: %{reason}s',
402 'cli.init.bad_role' => q{init: bad role '%{role}s'},
403 'cli.init.bad_mode' => q{init: bad snapshot mode '%{mode}s' (want hardlink or copy)},
404 'cli.init.bad_transport' => q{init: unknown transport '%{transport}s'},
405 'cli.init.need_server_root' => 'init: the local transport needs --server-root',
406 'cli.init.need_server' => 'init: the ssh transport needs --server',
407 'cli.init.bad_server' => q{init: bad server '%{server}s' (want user@host or host)},
408 'cli.init.no_known_hosts' => 'init: --known-hosts does not exist: %{path}s',
409 'cli.init.accept_ssh_only' => 'init: --accept-host-key only applies to the ssh transport',
410 'cli.init.bad_root' => 'init: cannot use %{root}s as a sync root',
411 'cli.init.done' => q{Initialised repo '%{repo}s'},
412 'cli.init.client_id' => ' client id: %{id}s',
413 'cli.init.root' => ' root: %{root}s',
414 'cli.init.transport' => ' transport: %{transport}s',
415 'cli.init.server' => ' server: %{server}s',
416 'cli.init.host_key_tofu' => ' host key: accept-new (trusted on first use)',
417 'cli.init.host_key_strict' => ' host key: strict',
418 'cli.init.config' => ' config: %{path}s',
419  
420 'cli.sync.would' => ' would %{verb}s %{path}s',
421 'cli.sync.summary' => '%{repo}s%{dry}s: pulled %{pulled}d, pushed %{pushed}d, deleted %{deleted}d, conflicts %{conflicts}d',
422 'cli.sync.dry_tag' => ' (dry run)',
423 'cli.sync.transfer' => ' transfer: %{report}s',
424  
425 'cli.transfer.report' => 'sent %{sent}s, received %{received}s, %{files}s by delta%{detail}s',
426 'cli.transfer.pulled' => '%{count}d pulled',
427 'cli.transfer.pushed' => '%{count}d pushed',
428 'cli.size.bytes' => '%{value}d B',
429 'cli.size.scaled' => '%{value}.1f %{unit}s',
430 'cli.size.exact' => '%{value}s B',
431  
432 'cli.status.repo' => '%{repo}s: %{root}s',
433 'cli.status.transport' => ' transport: %{transport}s',
434 'cli.status.last_run' => ' last run: %{last_run}s',
435 'cli.status.transfer' => ' transfer: %{report}s',
436 'cli.status.files' => ' files: %{files}d',
437  
438 'cli.log.none' => '%{repo}s: no runs recorded',
439 'cli.log.error' => '%{repo}s %{ts}s exit %{exit}d %{message}s',
440 'cli.log.run' => '%{repo}s %{ts}s exit %{exit}d pulled %{pulled}d, pushed %{pushed}d, deleted %{deleted}d, conflicts %{conflicts}d%{skipped}s%{transfer}s%{dry}s',
441 'cli.log.skipped' => ', skipped %{count}d',
442 'cli.log.dry_tag' => ' (dry run)',
443 'cli.log.heading' => '%{repo}s:',
444 'cli.log.no_events' => 'No journal entries for %{repo}s',
445 'cli.log.event' => '%{indent}s%{ts}s %{client}-12s %{action}-12s %{detail}s',
446  
447 'cli.settings.file' => 'settings file: %{file}s',
448 'cli.settings.no_file' => '(none)',
449 'cli.settings.row' => ' %{key}-16s %{value}-40s %{source}s',
450 'cli.settings.note' => "An empty ssh_identity or ssh_known_hosts means ssh's own default; an empty server_command means filesync-server.\nIn the repo sections, [repo only] marks port and host_key_checking, which have no process-wide default.",
451 'cli.settings.repos' => 'repos:',
452 'cli.settings.repo' => ' %{repo}s (%{transport}s%{server}s)',
453 'cli.settings.local' => ' the local transport does not use the SSH settings',
454 'cli.settings.repo_row' => ' %{key}-18s %{value}-38s %{source}s',
455 'cli.settings.stderr' => '(stderr)',
456 'cli.settings.ssh_default' => '(ssh default)',
457 'cli.settings.server_default' => 'filesync-server',
458 'cli.source.default' => '%{label}s',
459 'cli.source.merged' => 'merged: %{label}s',
460 'cli.source.env' => 'environment %{label}s',
461 'cli.source.file' => 'file %{label}s',
462 'cli.repo_source.repo' => 'repo (%{label}s)',
463 'cli.repo_source.process' => 'process (%{label}s)',
464 'cli.repo_source.default' => '%{label}s',
465 'cli.source.repo_only' => '%{description}s [repo only]',
466  
467 'cli.verify.summary' => '%{repo}s: %{state}s (%{files}s, %{rehashed}d rehashed, %{trusted}d unchanged)',
468 'cli.verify.clean' => 'clean',
469 'cli.verify.drift' => 'drift detected',
470 'cli.verify.no_base' => ' no cached base for this repo (it has not synced yet)',
471 'cli.verify.modified' => ' modified: %{path}s%{reason}s',
472 'cli.verify.missing' => ' missing: %{path}s',
473 'cli.verify.extra' => ' extra: %{path}s',
474  
475 'cli.restore.no_versions' => q{No trashed versions of '%{path}s'},
476 'cli.restore.no_versions_in' => q{No trashed versions of '%{path}s' in %{repo}s},
477 'cli.restore.version' => '%{date}-12s %{size}10s %{mtime}s %{path}s',
478 'cli.restore.done' => 'Restored %{path}s to %{to}s',
479 'cli.restore.admin_done' => 'Restored %{repo}s:%{path}s from %{from}s to %{to}s',
480 'cli.restore.the_trash' => 'the trash',
481  
482 'cli.snapshot.exists' => '%{repo}s: snapshot %{date}s already exists; left as it was',
483 'cli.snapshot.taken' => '%{repo}s: snapshot %{date}s taken (%{files}s, %{size}s) in %{path}s',
484 'cli.snapshot.pruned' => {
485 _by => 'count',
486 one => '%{repo}s: pruned %{count}d old snapshot (kept %{kept}d): %{dates}s',
487 other => '%{repo}s: pruned %{count}d old snapshots (kept %{kept}d): %{dates}s',
488 },
489 'cli.snapshot.none' => 'No snapshots for %{repo}s',
490 'cli.snapshot.header' => '%{date}-12s %{files}8s %{size}10s %{path}s',
491 'cli.snapshot.column.date' => 'DATE',
492 'cli.snapshot.column.files' => 'FILES',
493 'cli.snapshot.column.size' => 'SIZE',
494 'cli.snapshot.column.path' => 'PATH',
495 'cli.snapshot.row' => '%{date}-12s %{files}8d %{size}10s %{path}s',
496 'cli.snapshot.restored' => '%{repo}s: restored %{what}s from snapshot %{date}s (%{files}s, %{size}s) to %{to}s',
497 'cli.snapshot.whole_tree' => 'the whole tree',
498 'cli.snapshot.into_root' => 'note: a replica mirrors the master again on the next sync; use --to DIR to keep an exported copy',
499  
500 'cli.admin.root_value' => 'filesync-admin: --root needs a value',
501 'cli.admin.unknown_verb' => q{Unknown %{group}s command '%{verb}s'},
502 'cli.admin.empty_name' => 'log: NAME must not be empty',
503  
504 'cli.repo.created.name' => q{Created repo '%{repo}s'},
505 'cli.repo.created.master' => ' master: %{master}s',
506 'cli.repo.created.config' => ' config: %{config}s',
507 'cli.repo.none' => 'No repos under %{root}s',
508 'cli.repo.no_clients' => '(none)',
509 'cli.repo.trash_days' => { _by => 'count', one => 'kept %{count}d day', other => 'kept %{count}d days' },
510 'cli.repo.trash_forever' => 'kept forever',
511 'cli.repo.limits' => '%{files}s / %{percent}s',
512 'cli.repo.limits_off' => 'none (any number of deletions)',
513 'cli.repo.limit_files' => { _by => 'count', one => '%{count}d file', other => '%{count}d files' },
514 'cli.repo.limit_files_off' => 'no file limit',
515 'cli.repo.limit_percent' => '%{percent}s%%',
516 'cli.repo.limit_percent_off' => 'no percentage limit',
517 'cli.repo.show' => "name: %{name}s\nmaster: %{master}s\nmeta: %{meta}s\ntrash: %{trash}s\nlimits: %{limits}s\nclients: %{clients}s",
518  
519 'cli.reindex.would' => '%{repo}s: would index %{files}s, %{dirs}s (%{size}s); index unchanged',
520 'cli.reindex.done' => '%{repo}s: indexed %{files}s, %{dirs}s (%{size}s); master index written',
521 'cli.reindex.skipped' => ' skipped: %{path}s (%{reason}s)',
522  
523 'cli.client.allowed' => 'Allowed %{client}s on %{repo}s as %{role}s',
524 'cli.client.none' => 'No clients registered for %{repo}s',
525 'cli.client.row' => '%{client}-24s %{role}-8s %{state}s',
526 'cli.client.synced' => 'has synced',
527 'cli.client.never' => 'never synced',
528 'cli.client.forgot' => 'Forgot %{client}s (removed %{path}s)',
529 'cli.client.nothing' => 'No stored state for %{client}s',
530  
531 'settings.bad_level' => q{Invalid log_level '%{level}s' (want %{valid}s)},
532  
533 'snapshot.no_root' => 'Snapshot: no sync root given',
534 'snapshot.not_dir' => 'Snapshot: %{path}s is not a directory',
535 'snapshot.bad_date' => q{Snapshot: bad date '%{date}s' (want YYYY-MM-DD)},
536 'snapshot.bad_mode' => q{Snapshot: bad mode '%{mode}s' (want hardlink or copy)},
537 'snapshot.read' => 'Snapshot: cannot read %{path}s: %{error}s',
538 'snapshot.failed' => 'Snapshot: cannot create %{path}s: %{error}s',
539 'snapshot.remove' => 'Snapshot: cannot remove %{path}s (%{error}s)',
540 'snapshot.need_date' => 'Snapshot: --date is required',
541 'snapshot.none' => 'Snapshot: no snapshot for %{date}s under %{path}s',
542 'snapshot.need_to' => 'Snapshot: no destination given',
543 'snapshot.to_not_dir' => 'Snapshot: destination %{path}s is not a directory',
544 'snapshot.unsafe' => q{Unsafe snapshot path '%{path}s': %{reason}s},
545 'snapshot.no_path' => q{Snapshot %{date}s has no path '%{path}s'},
546 'snapshot.cannot_stat' => 'Snapshot: cannot stat %{path}s: %{error}s',
547 'snapshot.not_regular' => 'Snapshot: %{path}s is not a regular file',
548 'snapshot.replace' => 'Snapshot: cannot replace %{path}s',
549 );
550  
551 445 1;
552  
553 __END__
« blib/lib/App/FileSync/Constants.pm ↑ Summary