restic 0.16.4 → 0.17.1
3 releases · 0 breaking changes · 3 security fixes · 0 advisories fixed
3security0breaking3deprecated35feature24fix
Breaking changes
None in the release notes.
Security changes
- security Bugfix #5004: Fix spurious "A Required Privilege Is Not Held by the Client" error On Windows, creating a backup could sometimes trigger the following error: error: nodeFromFileInfo [...]: get named security info failed with: a required privilege is not held by the client. This has now been fixed. in 0.17.1
- security Enhancement #1786: Support repositories with empty password Restic previously required a password to create or operate on repositories. Using the new option --insecure-no-password it is now possible to disable this requirement. Restic will not prompt for a password when using this option. For… in 0.17.0
- security Enhancement #4873: Update dependencies A few potentially vulnerable dependencies were updated. in 0.16.5
Deprecations
- deprecated Chg: Deprecate legacy index format and s3legacy repository layout in 0.17.0
- deprecated Change #4602: Deprecate legacy index format and s3legacy repository layout Support for the legacy index format used by restic before version 0.2.0 has been deprecated and will be removed in the next minor restic version. You can use restic repair index to update the index to the current format. It… in 0.17.0
- deprecated Enhancement #4664: Make ls use message_type field in JSON output The ls command was the only restic command that used the struct_type field in its JSON output format to specify the message type. The JSON output of the ls command now also includes the message_type field, which is consistent with… in 0.17.0
Every release in between
fixFix: Correctly handle volume names in backup command on Windows
fixFix: Include missing backup error text with --json
fixFix: Correctly handle long paths on older Windows versions
fixFix: Fix delayed cancellation of certain commands
fixFix: Don't ignore metadata-setting errors during restore
fixFix: Correctly restore timestamp for files with resource forks on macOS
fixFix: Prevent backup --stdin-from-command from panicking
fixFix: Skip extended attribute processing on unsupported Windows volumes
fixFix: Fix spurious "A Required Privilege Is Not Held by the Client" error
fixFix: Fix rare failures to retry locking a repository
fixFix: Improve HTTP/2 support for REST backend
otherChg: Also back up files with incomplete metadata
otherEnh: Display progress bar for restore --verify
otherEnh: Automatically clear removed snapshots from cache
otherEnh: Print JSON-formatted errors during restore --json
otherEnh: Return exit code 12 for "bad password" errors
otherEnh: Make timeout for stuck requests customizable
fixBugfix #2004: Correctly handle volume names in backup command on Windows On Windows, when the specified backup target only included the volume name without a trailing slash, for example, C:, then restoring the resulting snapshot would result in an error. Note that using C:\ as backup target worked…
fixBugfix #4945: Include missing backup error text with --json Previously, when running a backup with the --json option, restic failed to include the actual error message in the output, resulting in "error": {} being displayed. This has now been fixed, and restic now includes the error text in JSON…
fixBugfix #4953: Correctly handle long paths on older Windows versions On older Windows versions, like Windows Server 2012, restic 0.17.0 failed to back up files with long paths. This problem has now been resolved.
fixBugfix #4957: Fix delayed cancellation of certain commands Since restic 0.17.0, some commands did not immediately respond to cancellation via Ctrl-C (SIGINT) and continued running for a short period. The most affected commands were diff,find, ls, stats and rewrite. This is now resolved.
fixBugfix #4958: Don't ignore metadata-setting errors during restore Previously, restic used to ignore errors when setting timestamps, attributes, or file modes during a restore. It now reports those errors, except for permission related errors when running without root privileges.
fixBugfix #4969: Correctly restore timestamp for files with resource forks on macOS On macOS, timestamps were not restored for files with resource forks. This has now been fixed.
fixBugfix #4975: Prevent backup --stdin-from-command from panicking Restic would previously crash if --stdin-from-command was specified without providing a command. This issue has now been fixed.
fixBugfix #4980: Skip extended attribute processing on unsupported Windows volumes With restic 0.17.0, backups of certain Windows paths, such as network drives, failed due to errors while fetching extended attributes. Restic now skips extended attribute processing for volumes where they are not…
securityBugfix #5004: Fix spurious "A Required Privilege Is Not Held by the Client" error On Windows, creating a backup could sometimes trigger the following error: error: nodeFromFileInfo [...]: get named security info failed with: a required privilege is not held by the client. This has now been fixed.
fixBugfix #5005: Fix rare failures to retry locking a repository Restic 0.17.0 could in rare cases fail to retry locking a repository if one of the lock files failed to load, resulting in the error: unable to create lock in backend: circuit breaker open for file This issue has now been addressed. The…
fixBugfix #5018: Improve HTTP/2 support for REST backend If rest-server tried to gracefully shut down an HTTP/2 connection still in use by the client, it could result in the following error: http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after…
otherChange #4953: Also back up files with incomplete metadata If restic failed to read extended metadata for a file or folder during a backup, then the file or folder was not included in the resulting snapshot. Instead, a warning message was printed along with returning exit code 3 once the backup was…
otherEnhancement #4795: Display progress bar for restore --verify When the restore command is run with --verify, it now displays a progress bar while the verification step is running. The progress bar is not shown when the --json flag is specified.
otherEnhancement #4934: Automatically clear removed snapshots from cache Previously, restic only removed snapshots from the cache on the host where the forget command was executed. On other hosts that use the same repository, the old snapshots remained in the cache. Restic now automatically clears old…
otherEnhancement #4944: Print JSON-formatted errors during restore --json Restic used to print any restore errors directly to the console as freeform text messages, even when using the --json option. Now, when --json is specified, restic prints them as JSON formatted messages.
otherEnhancement #4959: Return exit code 12 for "bad password" errors Restic now returns exit code 12 when it cannot open the repository due to an incorrect password.
otherEnhancement #4970: Make timeout for stuck requests customizable Restic monitors connections to the backend to detect stuck requests. If a request does not return any data within five minutes, restic assumes the request is stuck and retries it. However, for large repositories this timeout might be…
fixFix: Handle unreadable xattrs in folders above backup source
fixFix: Fix slow SFTP upload performance
fixFix: Correct hardlink handling in stats command
deprecatedChg: Deprecate legacy index format and s3legacy repository layout
featureEnh: Add bitrot detection to diff command
featureEnh: Add --delete option to restore command
featureEnh: Add extended options to configure Windows Shadow Copy Service
featureEnh: Add support for FUSE-T with mount on macOS
featureEnh: Add --json option to version command
featureEnh: Add --ncdu option to ls command
featureEnh: Add support for feature flags
featureEnh: Add --target option to the dump command
featureEnh: Allow specifying --host via environment variable
featureEnh: Allow specifying custom User-Agent for outgoing requests
featureEnh: Add restore options to read include/exclude patterns from files
featureEnh: Add dry-run support to restore command
featureChange #4540: Require at least ARMv6 for ARM binaries The official release binaries of restic now require at least ARMv6 support for ARM platforms.
deprecatedChange #4602: Deprecate legacy index format and s3legacy repository layout Support for the legacy index format used by restic before version 0.2.0 has been deprecated and will be removed in the next minor restic version. You can use restic repair index to update the index to the current format. It…
featureChange #4627: Redesign backend error handling to improve reliability Restic now downloads pack files in large chunks instead of using a streaming download. This prevents failures due to interrupted streams. The restore command now also retries downloading individual blobs that could not be…
featureChange #4707: Disable S3 anonymous authentication by default When using the S3 backend with anonymous authentication, it continuously tried to retrieve new authentication credentials, causing bad performance. Now, to use anonymous authentication, it is necessary to pass the extended option -o…
featureEnhancement #662: Optionally skip snapshot creation if nothing changed The backup command always created a snapshot even if nothing in the backup set changed compared to the parent snapshot. Restic now supports the --skip-if-unchanged option for the backup command, which omits creating a snapshot…
featureEnhancement #805: Add bitrot detection to diff command The output of the diff command now includes the modifier ? for files to indicate bitrot in backed up files. The ? will appear whenever there is a difference in content while the metadata is exactly the same. Since files with unchanged metadata…
securityEnhancement #1786: Support repositories with empty password Restic previously required a password to create or operate on repositories. Using the new option --insecure-no-password it is now possible to disable this requirement. Restic will not prompt for a password when using this option. For…
featureEnhancement #2348: Add --delete option to restore command The restore command now supports a --delete option that allows removing files and directories from the target directory that do not exist in the snapshot. This option also allows files in the snapshot to replace non-empty directories having…
featureEnhancement #3067: Add extended options to configure Windows Shadow Copy Service Previous, restic always used a 120 seconds timeout and unconditionally created VSS snapshots for all volume mount points on disk. This behavior can now be fine-tuned by the following new extended options (available…
featureEnhancement #4048: Add support for FUSE-T with mount on macOS The restic mount command now supports creating FUSE mounts using FUSE-T on macOS.
featureEnhancement #4287: Support connection to rest-server using unix socket Restic now supports using a unix socket to connect to a rest-server version 0.13.0 or later. This allows running restic as follows: rest-server --listen unix:/tmp/rest.socket --data /path/to/data & restic -r…
featureEnhancement #4472: Support AWS Assume Role for S3 backend Previously only credentials discovered via the Minio discovery methods were used to authenticate. However, there are many circumstances where the discovered credentials have lower permissions and need to assume a specific role. This is now…
featureEnhancement #4547: Add --json option to version command Restic now supports outputting restic version along with the Go version, OS and architecture used to build restic in JSON format using version --json.
featureEnhancement #4549: Add --ncdu option to ls command NCDU (NCurses Disk Usage) is a tool to analyse disk usage of directories. It has an option to save a directory tree and analyse it later. The ls command now supports outputting snapshot information in the NCDU format using the --ncdu option.…
featureEnhancement #4573: Support rewriting host and time metadata in snapshots The rewrite command now supports rewriting the host and/or time metadata of a snapshot using the new --new-host and --new-time options.
featureEnhancement #4601: Add support for feature flags Restic now supports feature flags that can be used to enable and disable experimental features. The flags can be set using the environment variable RESTIC_FEATURES. To get a list of currently supported feature flags, use the features command.
deprecatedEnhancement #4664: Make ls use message_type field in JSON output The ls command was the only restic command that used the struct_type field in its JSON output format to specify the message type. The JSON output of the ls command now also includes the message_type field, which is consistent with…
featureEnhancement #4676: Make key command's actions separate sub-commands Each of the add, list, remove and passwd actions provided by the key command is now a separate sub-command and have its own documentation which can be invoked using restic key --help.
featureEnhancement #4678: Add --target option to the dump command Restic dump always printed to the standard output. It now supports specifying a --target file to write its output to.
featureEnhancement #4733: Allow specifying --host via environment variable Restic commands that operate on snapshots, such as restic backup and restic snapshots, support the --host option to specify the hostname for grouping snapshots. Such commands now also support specifying the hostname via the…
featureEnhancement #4764: Support forgetting all snapshots The forget command now supports the --unsafe-allow-remove-all option, which removes all snapshots in the repository. This option must always be combined with a snapshot filter (by host, path or tag). For example, the command forget --tag example…
featureEnhancement #4768: Allow specifying custom User-Agent for outgoing requests Restic now supports setting a custom User-Agent for outgoing HTTP requests using the global option --http-user-agent or the RESTIC_HTTP_USER_AGENT environment variable.
featureEnhancement #4781: Add restore options to read include/exclude patterns from files Restic now supports reading include and exclude patterns from files using the --include-file, --exclude-file, --iinclude-file and --iexclude-file options of the restore command.
featureEnhancement #4839: Add dry-run support to restore command The restore command now supports the --dry-run option to perform a dry run. Pass the --verbose=2 option to see which files would remain unchanged, and which would be updated or freshly restored.
+78 more items in the release notesfeatureEnh: Add option to force use of Azure CLI credential
otherEnh: Update dependencies
featureEnhancement #4799: Add option to force use of Azure CLI credential A new environment variable AZURE_FORCE_CLI_CREDENTIAL=true allows forcing the use of Azure CLI credential, ignoring other credentials like managed identity.
securityEnhancement #4873: Update dependencies A few potentially vulnerable dependencies were updated.