mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 10:58:55 +00:00
Merge pull request #4306 from MichaelEischer/document-restic-compression-env
Document that the compression mode can be set via $RESTIC_COMPRESSION
This commit is contained in:
commit
8d971172c4
@ -126,7 +126,7 @@ func init() {
|
|||||||
f.StringVar(&globalOptions.TLSClientCertKeyFilename, "tls-client-cert", "", "path to a `file` containing PEM encoded TLS client certificate and private key")
|
f.StringVar(&globalOptions.TLSClientCertKeyFilename, "tls-client-cert", "", "path to a `file` containing PEM encoded TLS client certificate and private key")
|
||||||
f.BoolVar(&globalOptions.InsecureTLS, "insecure-tls", false, "skip TLS certificate verification when connecting to the repository (insecure)")
|
f.BoolVar(&globalOptions.InsecureTLS, "insecure-tls", false, "skip TLS certificate verification when connecting to the repository (insecure)")
|
||||||
f.BoolVar(&globalOptions.CleanupCache, "cleanup-cache", false, "auto remove old cache directories")
|
f.BoolVar(&globalOptions.CleanupCache, "cleanup-cache", false, "auto remove old cache directories")
|
||||||
f.Var(&globalOptions.Compression, "compression", "compression mode (only available for repository format version 2), one of (auto|off|max)")
|
f.Var(&globalOptions.Compression, "compression", "compression mode (only available for repository format version 2), one of (auto|off|max) (default: $RESTIC_COMPRESSION)")
|
||||||
f.IntVar(&globalOptions.Limits.UploadKb, "limit-upload", 0, "limits uploads to a maximum `rate` in KiB/s. (default: unlimited)")
|
f.IntVar(&globalOptions.Limits.UploadKb, "limit-upload", 0, "limits uploads to a maximum `rate` in KiB/s. (default: unlimited)")
|
||||||
f.IntVar(&globalOptions.Limits.DownloadKb, "limit-download", 0, "limits downloads to a maximum `rate` in KiB/s. (default: unlimited)")
|
f.IntVar(&globalOptions.Limits.DownloadKb, "limit-download", 0, "limits downloads to a maximum `rate` in KiB/s. (default: unlimited)")
|
||||||
f.UintVar(&globalOptions.PackSize, "pack-size", 0, "set target pack `size` in MiB, created pack files may be larger (default: $RESTIC_PACK_SIZE)")
|
f.UintVar(&globalOptions.PackSize, "pack-size", 0, "set target pack `size` in MiB, created pack files may be larger (default: $RESTIC_PACK_SIZE)")
|
||||||
|
@ -26,7 +26,7 @@ Usage help is available:
|
|||||||
dump Print a backed-up file to stdout
|
dump Print a backed-up file to stdout
|
||||||
find Find a file, a directory or restic IDs
|
find Find a file, a directory or restic IDs
|
||||||
forget Remove snapshots from the repository
|
forget Remove snapshots from the repository
|
||||||
generate Generate manual pages and auto-completion files (bash, fish, zsh)
|
generate Generate manual pages and auto-completion files (bash, fish, zsh, powershell)
|
||||||
help Help about any command
|
help Help about any command
|
||||||
init Initialize a new repository
|
init Initialize a new repository
|
||||||
key Manage keys (passwords)
|
key Manage keys (passwords)
|
||||||
@ -50,7 +50,7 @@ Usage help is available:
|
|||||||
--cacert file file to load root certificates from (default: use system certificates)
|
--cacert file file to load root certificates from (default: use system certificates)
|
||||||
--cache-dir directory set the cache directory. (default: use system default cache directory)
|
--cache-dir directory set the cache directory. (default: use system default cache directory)
|
||||||
--cleanup-cache auto remove old cache directories
|
--cleanup-cache auto remove old cache directories
|
||||||
--compression mode compression mode (only available for repository format version 2), one of (auto|off|max) (default auto)
|
--compression mode compression mode (only available for repository format version 2), one of (auto|off|max) (default: $RESTIC_COMPRESSION) (default auto)
|
||||||
-h, --help help for restic
|
-h, --help help for restic
|
||||||
--insecure-tls skip TLS certificate verification when connecting to the repository (insecure)
|
--insecure-tls skip TLS certificate verification when connecting to the repository (insecure)
|
||||||
--json set output mode to JSON for commands that support it
|
--json set output mode to JSON for commands that support it
|
||||||
@ -106,6 +106,7 @@ command:
|
|||||||
--files-from-raw file read the files to backup from file (can be combined with file args; can be specified multiple times)
|
--files-from-raw file read the files to backup from file (can be combined with file args; can be specified multiple times)
|
||||||
--files-from-verbatim file read the files to backup from file (can be combined with file args; can be specified multiple times)
|
--files-from-verbatim file read the files to backup from file (can be combined with file args; can be specified multiple times)
|
||||||
-f, --force force re-reading the target files/directories (overrides the "parent" flag)
|
-f, --force force re-reading the target files/directories (overrides the "parent" flag)
|
||||||
|
-g, --group-by group group snapshots by host, paths and/or tags, separated by comma (disable grouping with '') (default host,paths)
|
||||||
-h, --help help for backup
|
-h, --help help for backup
|
||||||
-H, --host hostname set the hostname for the snapshot manually. To prevent an expensive rescan use the "parent" flag
|
-H, --host hostname set the hostname for the snapshot manually. To prevent an expensive rescan use the "parent" flag
|
||||||
--iexclude pattern same as --exclude pattern but ignores the casing of filenames
|
--iexclude pattern same as --exclude pattern but ignores the casing of filenames
|
||||||
@ -114,8 +115,8 @@ command:
|
|||||||
--ignore-inode ignore inode number changes when checking for modified files
|
--ignore-inode ignore inode number changes when checking for modified files
|
||||||
--no-scan do not run scanner to estimate size of backup
|
--no-scan do not run scanner to estimate size of backup
|
||||||
-x, --one-file-system exclude other file systems, don't cross filesystem boundaries and subvolumes
|
-x, --one-file-system exclude other file systems, don't cross filesystem boundaries and subvolumes
|
||||||
--parent snapshot use this parent snapshot (default: last snapshot in the repository that has the same target files/directories, and is not newer than the snapshot time)
|
--parent snapshot use this parent snapshot (default: latest snapshot in the group determined by --group-by and not newer than the timestamp determined by --time)
|
||||||
--read-concurrency n read n file concurrently (default: $RESTIC_READ_CONCURRENCY or 2)
|
--read-concurrency n read n files concurrently (default: $RESTIC_READ_CONCURRENCY or 2)
|
||||||
--stdin read backup from stdin
|
--stdin read backup from stdin
|
||||||
--stdin-filename filename filename to use when reading from stdin (default "stdin")
|
--stdin-filename filename filename to use when reading from stdin (default "stdin")
|
||||||
--tag tags add tags for the new snapshot in the format `tag[,tag,...]` (can be specified multiple times) (default [])
|
--tag tags add tags for the new snapshot in the format `tag[,tag,...]` (can be specified multiple times) (default [])
|
||||||
@ -127,7 +128,7 @@ command:
|
|||||||
--cacert file file to load root certificates from (default: use system certificates)
|
--cacert file file to load root certificates from (default: use system certificates)
|
||||||
--cache-dir directory set the cache directory. (default: use system default cache directory)
|
--cache-dir directory set the cache directory. (default: use system default cache directory)
|
||||||
--cleanup-cache auto remove old cache directories
|
--cleanup-cache auto remove old cache directories
|
||||||
--compression mode compression mode (only available for repository format version 2), one of (auto|off|max) (default auto)
|
--compression mode compression mode (only available for repository format version 2), one of (auto|off|max) (default: $RESTIC_COMPRESSION) (default auto)
|
||||||
--insecure-tls skip TLS certificate verification when connecting to the repository (insecure)
|
--insecure-tls skip TLS certificate verification when connecting to the repository (insecure)
|
||||||
--json set output mode to JSON for commands that support it
|
--json set output mode to JSON for commands that support it
|
||||||
--key-hint key key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
|
--key-hint key key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
|
||||||
|
Loading…
Reference in New Issue
Block a user