Up to [cvs.NetBSD.org] / pkgsrc / sysutils / restic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
restic: update to 0.19.1. ## Summary * Fix #5234: Prevent mounting over the repository directory * Fix #5667: Skip inaccessible `backup` source paths * Fix #5722: Update `mount` latest symlink after snapshot reload * Fix #21866: Hide `stats` progress bar in JSON mode * Fix #21869: Restore old behavior of `snapshots --latest <n>` without `--group-by` * Fix #21876: Show timezone location in `snapshots` output * Fix #21879: Prevent crash in mountpoint validation if mountpoint is inaccessible * Fix #21895: Remove read-only files via the SFTP backend on Windows servers * Fix #21899: Make `backup` respect excludes for duplicate directory entries
restic: updated to 0.19.0 Restic 0.19.0 (2026-06-09) The following sections list the changes in restic 0.19.0 relevant to restic users. The changes are ordered by importance. Summary * Fix: Support serving a `restic mount` of a Windows system via Samba * Fix: Use mode 0700 for repository directories created over SFTP * Fix: Exit with code 3 when some `backup` source paths do not exist * Fix: Error out when environment variables hold invalid values * Fix: Return exit code 3 when failing to remove snapshots * Fix: Exit with code 130 on SIGINT * Fix: Reject impossible `find` time bounds immediately * Fix: Make `find --pack` list blobs for tree packs * Fix: Allow `rclone` and `sftp` backends when running in background * Fix: Correctly restore ACL inheritance state on Windows * Fix: Password prompt was sometimes not shown for `backup -v` * Fix: Mark repository files read-only when using the SFTP backend * Fix: Correctly handle `snapshots --group-by` with `--latest` * Fix: Avoid spurious `chmod` errors on certain file backends * Fix: Prevent `backup --stdin-from-command` from hanging * Fix: Respect `--user` and `--host` in `key passwd` * Fix: Correct handling of duplicate index entries * Fix: Correctly handle pack files missing from the index * Chg: Prune small packfiles more aggressively * Chg: Prevent excluding paths explicitly passed to `backup` * Chg: Update dependencies and require Go 1.25 or newer * Enh: Limit `check` to snapshots selected by filters * Enh: Support restoring ownership by name on UNIX systems * Enh: Optional GitHub token for `self-update` API requests * Enh: Support include filters in the `rewrite` command * Enh: Support zstd compression levels `fastest` and `better` * Enh: Include repository ID in the filesystem name used by `mount` * Enh: Add status counters to `copy` in verbose text output * Enh: Support excluding cloud-backed files on macOS * Enh: Reduce progress bar refresh rates to decrease energy usage * Enh: Enable Windows filesystem privileges before file access * Enh: Make `--host` override environment variable `RESTIC_HOST` * Enh: Support configuring `nice` and `ionice` in the Docker image * Enh: Copy multiple snapshots in batches * Enh: Add Open Container Initiative labels to release Docker image * Enh: Reduce Azure storage costs by optimizing uploads * Enh: Rewrite only changed status lines each frame * Enh: Show timezone context in `snapshots` output * Enh: Reduce `check`, `copy`, `diff` and `stats` memory usage * Enh: Show more detailed progress for `stats` * Enh: Significantly speed up index loading * Enh: Stricter and earlier validation of the `mount` point
restic: updated to 0.18.1 Changelog for restic 0.18.1 (2025-09-21) * Fix 5324: Correctly handle `backup --stdin-filename` with directory paths * Fix 5325: Accept `RESTIC_HOST` environment variable in `forget` command * Fix 5342: Ignore "chmod not supported" errors when writing files * Fix 5344: Ignore `EOPNOTSUPP` errors for extended attributes * Fix 5421: Fix rare crash if directory is removed during backup * Fix 5429: Stop retrying uploads when rest-server runs out of space * Fix 5467: Improve handling of download retries in `check` command
restic: updated to 0.18.0 restic 0.18.0 (2025-03-27) The following sections list the changes in restic 0.18.0 relevant to restic users. The changes are ordered by importance. Summary * Sec: Mitigate attack on content-defined chunking algorithm * Fix: Correctly restore long filepaths' timestamp on old Windows * Fix: Ignore disappeared backup source files * Fix: Include root tree when searching using `find --tree` * Fix: Prevent Windows VSS event log 8194 warnings for backup with fs snapshot * Fix: Fix duplicate data handling in `prune --max-unused` * Fix: Fix creation of oversized index by `repair index --read-all-packs` * Fix: Fix rare crash in command output * Chg: Update dependencies and require Go 1.23 or newer * Chg: Promote feature flags * Enh: Add JSON support to `check` command * Enh: Support generating shell completions to stdout * Enh: Allow excluding online-only cloud files (e.g. OneDrive) * Enh: Add `sort` option to `ls` command * Enh: Change default sort order for `find` output * Enh: Add support for Microsoft Blob Storage access tiers * Enh: Add snapshot summary statistics to rewritten snapshots * Enh: Format exit errors as JSON when requested * Enh: Add SLSA provenance to GHCR container images * Enh: Enable compression for ZIP archives in `dump` command * Enh: Add retry mechanism for loading repository config * Enh: Allow including/excluding extended file attributes during `restore` * Enh: Show count of deleted files and directories during `restore` * Enh: Make small pack size configurable for `prune` * Enh: Add start and end timestamps to `backup` JSON output * Enh: Add DragonFlyBSD support * Enh: Make `tag` command print which snapshots were modified * Enh: Provide clear error message if AZURE_ACCOUNT_NAME is not set * Enh: Add experimental S3 cold storage support * Enh: Add xattr support for NetBSD 10+ * Enh: Improve retry handling for flaky `rclone` backends * Enh: Make `recover` automatically rebuild index when needed
restic: update to 0.17.0 Changelog for restic 0.17.0 (2024-07-26) * Fix: #3600: Handle unreadable xattrs in folders above backup source * Fix: #4209: Fix slow SFTP upload performance * Fix: #4503: Correct hardlink handling in stats command * Fix: #4568: Prevent forget --keep-tags <invalid> from deleting all snapshots * Fix: #4615: Make find not sometimes ignore directories * Fix: #4656: Properly report ID of newly added keys * Fix: #4703: Shutdown cleanly when receiving SIGTERM * Fix: #4709: Correct --no-lock handling of ls and tag commands * Fix: #4760: Fix possible error on concurrent cache cleanup * Fix: #4850: Handle UTF-16 password files in key command correctly * Fix: #4902: Update snapshot summary on rewrite * Chg: #956: Return exit code 10 and 11 for non-existing and locked repository * Chg: #4540: Require at least ARMv6 for ARM binaries * Chg: #4602: Deprecate legacy index format and s3legacy repository layout * Chg: #4627: Redesign backend error handling to improve reliability * Chg: #4707: Disable S3 anonymous authentication by default * Chg: #4744: Include full key ID in JSON output of key list * Enh: #662: Optionally skip snapshot creation if nothing changed * Enh: #693: Include snapshot size in snapshots output * Enh: #805: Add bitrot detection to diff command * Enh: #828: Improve features of the repair packs command * Enh: #1786: Support repositories with empty password * Enh: #2348: Add --delete option to restore command * Enh: #3067: Add extended options to configure Windows Shadow Copy Service * Enh: #3406: Improve dump performance for large files * Enh: #3806: Optimize and make prune command resumable * Enh: #4006: (alpha) Store deviceID only for hardlinks * Enh: #4048: Add support for FUSE-T with mount on macOS * Enh: #4251: Support reading backup from a command's standard output * Enh: #4287: Support connection to rest-server using unix socket * Enh: #4354: Significantly reduce prune memory usage * Enh: #4437: Make check command create non-existent cache directory * Enh: #4472: Support AWS Assume Role for S3 backend * Enh: #4547: Add --json option to version command * Enh: #4549: Add --ncdu option to ls command * Enh: #4573: Support rewriting host and time metadata in snapshots * Enh: #4583: Ignore s3.storage-class archive tiers for metadata * Enh: #4590: Speed up mount command's error detection * Enh: #4601: Add support for feature flags * Enh: #4611: Back up more file metadata on Windows * Enh: #4664: Make ls use message_type field in JSON output * Enh: #4676: Make key command's actions separate sub-commands * Enh: #4678: Add --target option to the dump command * Enh: #4708: Back up and restore SecurityDescriptors on Windows * Enh: #4733: Allow specifying --host via environment variable * Enh: #4737: Include snapshot ID in reason field of forget JSON output * Enh: #4764: Support forgetting all snapshots * Enh: #4768: Allow specifying custom User-Agent for outgoing requests * Enh: #4781: Add restore options to read include/exclude patterns from files * Enh: #4807: Support Extended Attributes on Windows NTFS * Enh: #4817: Make overwrite behavior of restore customizable * Enh: #4839: Add dry-run support to restore command
restic: update to 0.16.5 Changelog for restic 0.16.5 (2024-07-01) * Enh #4799: Add option to force use of Azure CLI credential * Enh #4873: Update dependencies
restic: update to 0.16.4. # Changelog for restic 0.16.4 (2024-02-04) * Fix #4677: Downgrade zstd library to fix rare data corruption at max. compression * Enh #4529: Add extra verification of data integrity before upload
restic: update to 0.16.3. # Changelog for restic 0.16.3 (2024-01-14) * Fix #4560: Improve errors for irregular files on Windows * Fix #4574: Support backup of deduplicated files on Windows again * Fix #4612: Improve error handling for `rclone` backend * Fix #4624: Correct `restore` progress information if an error occurs * Fix #4626: Improve reliability of restoring large files
restic: update to 0.16.1.
restic 0.16.1 has been released! It contains an important bug fix
which prevents data corruption when compression is set to max.
Summary
Fix #4513: Make key list command honor --no-lock
Fix #4516: Do not try to load password on command line autocomplete
Fix #4523: Update zstd library to fix possible data corruption at max. compression
Chg #4532: Update dependencies and require Go 1.19 or newer
Enh #229: Show progress bar while loading the index
Enh #4128: Automatically set GOMAXPROCS in resource-constrained containers
Enh #4480: Allow setting REST password and username via environment variables
Enh #4511: Include inode numbers in JSON output for find and ls commands
Enh #4519: Add config option to set SFTP command arguments
restic: update to 0.16.0 Pkgsrc changes: * Update man files to be installed. Upstream changes: * Fix #2565: Support "unlimited" in forget --keep-* options * Fix #3311: Support non-UTF8 paths as symlink target * Fix #4199: Avoid lock refresh issues on slow network connections * Fix #4274: Improve lock refresh handling after standby * Fix #4319: Correctly clean up status bar output of the backup command * Fix #4333: generate and init no longer silently ignore unexpected arguments * Fix #4400: Ignore missing folders in rest backend * Chg #4176: Fix JSON message type of scan_finished for the backup command * Chg #4201: Require Go 1.20 for Solaris builds * Enh #426: Show progress bar during restore * Enh #719: Add --retry-lock option * Enh #1495: Sort snapshots by timestamp in restic find * Enh #1759: Add repair index and repair snapshots commands * Enh #1926: Allow certificate paths to be passed through environment variables * Enh #2359: Provide multi-platform Docker images * Enh #2468: Add support for non-global Azure clouds * Enh #2679: Reduce file fragmentation for local backend * Enh #3328: Reduce memory usage by up to 25% * Enh #3397: Improve accuracy of ETA displayed during backup * Enh #3624: Keep oldest snapshot when there are not enough snapshots * Enh #3698: Add support for Managed / Workload Identity to azure backend * Enh #3871: Support <snapshot>:<subfolder> syntax to select subfolders * Enh #3941: Support --group-by for backup parent selection * Enh #4130: Cancel current command if cache becomes unusable * Enh #4159: Add --human-readable option to ls and find commands * Enh #4188: Include restic version in snapshot metadata * Enh #4220: Add jq binary to Docker image * Enh #4226: Allow specifying region of new buckets in the gs backend * Enh #4375: Add support for extended attributes on symlinks
restic: update to 0.15.2 Pkgsrc changes: * Update MAINTAINER mail address. * Minior cleanup. Upstream changes: Changelog for restic 0.15.2 (2023-04-24) * Sec #4275: Update golang.org/x/net to address CVE-2022-41723 * Fix #2260: Sanitize filenames printed by `backup` during processing * Fix #4211: Make `dump` interpret `--host` and `--path` correctly * Fix #4239: Correct number of blocks reported in mount point * Fix #4253: Minimize risk of spurious filesystem loops with `mount` * Enh #4180: Add release binaries for riscv64 architecture on Linux * Enh #4219: Upgrade Minio to version 7.0.49 Changelog for restic 0.15.1 (2023-01-30) * Fix #3750: Remove `b2_download_file_by_name: 404` warning from B2 backend * Fix #4147: Make `prune --quiet` not print progress bar * Fix #4163: Make `self-update --output` work with new filename on Windows * Fix #4167: Add missing ETA in `backup` progress bar * Enh #4143: Ignore empty lock files Changelog for restic 0.15.0 (2023-01-12) * Fix #2015: Make `mount` return exit code 0 after receiving Ctrl-C / SIGINT * Fix #2578: Make `restore` replace existing symlinks * Fix #2591: Don't read password from stdin for `backup --stdin` * Fix #3161: Delete files on Backblaze B2 more reliably * Fix #3336: Make SFTP backend report no space left on device * Fix #3567: Improve handling of interrupted syscalls in `mount` command * Fix #3897: Fix stuck `copy` command when `-o <backend>.connections=1` * Fix #3918: Correct prune statistics for partially compressed repositories * Fix #3951: Make `ls` return exit code 1 if snapshot cannot be loaded * Fix #4003: Make `backup` no longer hang on Solaris when seeing a FIFO file * Fix #4016: Support ExFAT-formatted local backends on macOS Ventura * Fix #4085: Make `init` ignore "Access Denied" errors when creating S3 buckets * Fix #4100: Make `self-update` enabled by default only in release builds * Fix #4103: Don't generate negative UIDs and GIDs in tar files from `dump` * Chg #2724: Include full snapshot ID in JSON output of `backup` * Chg #3929: Make `unlock` display message only when locks were actually removed * Chg #4033: Don't print skipped snapshots by default in `copy` command * Chg #4041: Update dependencies and require Go 1.18 or newer * Enh #14: Implement `rewrite` command * Enh #79: Restore files with long runs of zeros as sparse files * Enh #1078: Support restoring symbolic links on Windows * Enh #1734: Inform about successful retries after errors * Enh #1866: Improve handling of directories with duplicate entries * Enh #2134: Support B2 API keys restricted to hiding but not deleting files * Enh #2152: Make `init` open only one connection for the SFTP backend * Enh #2533: Handle cache corruption on disk and in downloads * Enh #2715: Stricter repository lock handling * Enh #2750: Make backup file read concurrency configurable * Enh #3029: Add support for `credential_process` to S3 backend * Enh #3096: Make `mount` command support macOS using macFUSE 4.x * Enh #3124: Support JSON output for the `init` command * Enh #3899: Optimize prune memory usage * Enh #3905: Improve speed of parent snapshot detection in `backup` command * Enh #3915: Add compression statistics to the `stats` command * Enh #3925: Provide command completion for PowerShell * Enh #3931: Allow `backup` file tree scanner to be disabled * Enh #3932: Improve handling of ErrDot errors in rclone and sftp backends * Enh #3943: Ignore additional/unknown files in repository * Enh #3955: Improve `backup` performance for small files Changelog for restic 0.14.0 (2022-08-25) * Fix #2248: Support `self-update` on Windows * Fix #3428: List snapshots in backend at most once to resolve snapshot IDs * Fix #3432: Fix rare 'not found in repository' error for `copy` command * Fix #3681: Fix rclone (shimmed by Scoop) and sftp not working on Windows * Fix #3685: The `diff` command incorrectly listed some files as added * Fix #3716: Print "wrong password" to stderr instead of stdout * Fix #3720: Directory sync errors for repositories accessed via SMB * Fix #3736: The `stats` command miscalculated restore size for multiple snapshots * Fix #3772: Correctly rebuild index for legacy repositories * Fix #3776: Limit number of key files tested while opening a repository * Fix #3861: Yield error on invalid policy to `forget` * Chg #1842: Support debug log creation in release builds * Chg #3295: Deprecate `check --check-unused` and add further checks * Chg #3680: Update dependencies and require Go 1.15 or newer * Chg #3742: Replace `--repo2` option used by `init`/`copy` with `--from-repo` * Enh #21: Add compression support * Enh #1153: Support pruning even when the disk is full * Enh #2162: Adaptive IO concurrency based on backend connections * Enh #2291: Allow pack size customization * Enh #2295: Allow use of SAS token to authenticate to Azure * Enh #2351: Use config file permissions to control file group access * Enh #2696: Improve backup speed with many small files * Enh #2907: Make snapshot directory structure of `mount` command customizable * Enh #2923: Improve speed of `copy` command * Enh #3114: Optimize handling of duplicate blobs in `prune` * Enh #3465: Improve handling of temporary files on Windows * Enh #3475: Allow limiting IO concurrency for local and SFTP backend * Enh #3484: Stream data in `check` and `prune` commands * Enh #3709: Validate exclude patterns before backing up * Enh #3729: Display full IDs in `check` warnings * Enh #3773: Optimize memory usage for directories with many files * Enh #3819: Validate include/exclude patterns before restoring * Enh #3837: Improve SFTP repository initialization over slow links Changelog for restic 0.13.0 (2022-03-26) * Fix #1106: Never lock repository for `list locks` * Fix #2345: Make cache crash-resistant and usable by multiple concurrent processes * Fix #2452: Improve error handling of repository locking * Fix #2738: Don't print progress for `backup --json --quiet` * Fix #3382: Make `check` command honor `RESTIC_CACHE_DIR` environment variable * Fix #3488: `rebuild-index` failed if an index file was damaged * Fix #3518: Make `copy` command honor `--no-lock` for source repository * Fix #3556: Fix hang with Backblaze B2 on SSL certificate authority error * Fix #3591: Fix handling of `prune --max-repack-size=0` * Fix #3601: Fix rclone backend prematurely exiting when receiving SIGINT on Windows * Fix #3619: Avoid choosing parent snapshots newer than time of new snapshot * Fix #3667: The `mount` command now reports symlinks sizes * Chg #3519: Require Go 1.14 or newer * Chg #3641: Ignore parent snapshot for `backup --stdin` * Enh #233: Support negative include/exclude patterns * Enh #1542: Add `--dry-run`/`-n` option to `backup` command * Enh #2202: Add upload checksum for Azure, GS, S3 and Swift backends * Enh #2388: Add warning for S3 if partial credentials are provided * Enh #2508: Support JSON output and quiet mode for the `diff` command * Enh #2594: Speed up the `restore --verify` command * Enh #2656: Add flag to disable TLS verification for self-signed certificates * Enh #2816: The `backup` command no longer updates file access times on Linux * Enh #2880: Make `recover` collect only unreferenced trees * Enh #3003: Atomic uploads for the SFTP backend * Enh #3127: Add xattr (extended attributes) support for Solaris * Enh #3429: Verify that new or modified keys are stored correctly * Enh #3436: Improve local backend's resilience to (system) crashes * Enh #3464: Skip lock creation on `forget` if `--no-lock` and `--dry-run` * Enh #3490: Support random subset by size in `check --read-data-subset` * Enh #3508: Cache blobs read by the `dump` command * Enh #3511: Support configurable timeout for the rclone backend * Enh #3541: Improve handling of temporary B2 delete errors * Enh #3542: Add file mode in symbolic notation to `ls --json` * Enh #3593: Improve `copy` performance by parallelizing IO
Update restic to 0.12.1, as requested in PR pkg/56465. - Improve error handling for rclone and REST backend over HTTP2 - Fix terminal output redirection for PowerShell - Treat an empty password as a fatal error for repository init - copy failed to copy snapshots in rare cases - backup --quiet no longer prints status information - Fix crash of check --read-data-subset=x% run for an empty repository - Fix fdopendir: not a directory error for local backend - Print created new cache message only on a terminal - Fix crash of backup --exclude='**' - Fix possibly missing backup summary of JSON output in case of error - Correctly handle download errors during restore - Empty files now have size of 0 in ls --json output - Add auto-completion support for fish - SFTP backend now checks for disk space - Add --keep-within-hourly option to restic forget - Support filtering and specifying untagged snapshots - Allow specifying limit of snapshots list - Optimize read performance of mount command - find --pack fallback to index if data file is missing
restic: add forgotten go-modules.mk. Noticed by joerg@, thanks!