Commit Graph

9652 Commits

Author SHA1 Message Date
Michael Eischer f2d614db56 backend/util: fix errorhandling in DefaultDelete test helper 2026-06-23 19:13:39 +02:00
Michael Eischer ed655b476a backend/sftp: fix file handle leak if chmod for a file fails 2026-06-23 19:13:39 +02:00
Michael Eischer 80f694b32e backend/rest: correctly close body on out of bounds read 2026-06-23 19:13:39 +02:00
Michael Eischer eaa835becd backend/b2: correctly close file if too short 2026-06-23 19:13:39 +02:00
Michael Eischer 7aa82d68b4 forget: fix error handling if snapshot key cannot be marshaled 2026-06-23 19:13:39 +02:00
Michael Eischer a3fa3eb182 ensure reliable cleanup of test repository (#21880) 2026-06-23 19:12:08 +02:00
Michael Eischer cb24c4f566 snapshots: show location name instead of current timezone (#21877) 2026-06-23 19:11:19 +02:00
Michael Eischer d6fd4ae26f mount: fix crash in mountpoint validation (#21879) 2026-06-23 19:09:57 +02:00
Michael Eischer 4134bdfac2 stats: hide progress bar for json output (#21871) 2026-06-23 19:08:36 +02:00
Michael Eischer c08e7fd956 mount: unify mountpoint validation error messages 2026-06-23 19:08:36 +02:00
Michael Eischer d07bcd50da mount: factor out mountpoint validation into helper 2026-06-23 19:08:36 +02:00
Srigovind Nayak e6b9118f51 doc: note that mountpoint must not overlap the repository
Document the new restriction added so users encountering the error
message have a reference, and so the constraint is visible before they
hit it.
2026-06-23 19:08:12 +02:00
Srigovind Nayak 82a665384b chore: update changelog for issue 5234 2026-06-23 19:08:12 +02:00
Srigovind Nayak 1e249b0da1 mount: refuse mountpoints that overlap the local repository
Mounting a local repository onto its own directory caused the FUSE
  server to read its own backend files through the mount it had just
  created, deadlocking the kernel. `umount` then reported "Device or
  resource busy" and recovery required a reboot that took several
  minutes. The same shape occurs when the mountpoint is nested inside
  the repository directory, or when the repository directory is nested
  inside the mountpoint.

  The mount command now resolves both paths via filepath.Abs and
  filepath.EvalSymlinks and refuses with a fatal error if either path
  equals or contains the other. The check runs before the repository
  lock is acquired so an overlap fails fast. Only the local backend is
  checked; remote backends cannot shadow the mountpoint directory.
2026-06-23 19:08:12 +02:00
Michael Eischer 5967f9a894 upgrade compress library 2026-06-23 19:07:56 +02:00
Michael Eischer 1733dd56b9 repository: fix zero-sized blobs in v2 repos 2026-06-23 19:07:56 +02:00
Michael Eischer ed39b60e7d fix version set by helper after release (#21865) 2026-06-23 19:06:55 +02:00
Alexander Neumann 12875cc48e Add version for 0.19.0 v0.19.0 2026-06-09 18:49:04 +02:00
Alexander Neumann 8c37a3983a Update manpages and auto-completion 2026-06-09 18:49:04 +02:00
Alexander Neumann d718c4cf20 Generate CHANGELOG.md for 0.19.0 2026-06-09 18:48:35 +02:00
Alexander Neumann 60448342b3 Prepare changelog for 0.19.0 2026-06-09 18:48:35 +02:00
Alexander Neumann 4f59ed8806 Merge pull request #21863 from MichaelEischer/downgrade-compress
Downgrade compress library due to regression with zero-sized blobs
2026-06-09 18:40:30 +02:00
Michael Eischer 522efd1175 downgrade compress library due to regression with zero-sized blobs
while this should only affect test cases better be safe than sorry.
2026-06-08 22:51:47 +02:00
rawtaz f01359ff92 doc: Polish changelogs (#21847) 2026-06-05 22:30:46 +02:00
rawtaz 0b3c0fc222 Merge pull request #21842 from restic/polish-changelogs
Polish changelogs
2026-06-05 00:33:38 +02:00
Winfried Plappert ed571c8d12 Docs - Diving into a Repository - create html links across the chapter (#21839) 2026-06-02 22:42:43 +02:00
Michael Eischer 0ddd98e03b stats: stop progress bar before printing stats (#21843) 2026-06-02 22:37:46 +02:00
Michael Eischer cebc5c8957 polish changelogs 2026-06-01 22:10:27 +02:00
dependabot[bot] 724b7dc231 build(deps): bump google.golang.org/api from 0.279.0 to 0.282.0 (#21836)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 19:39:49 +00:00
Michael Eischer 2141fd83a9 checker: increase timeout for blob type confusion test (#21831) 2026-06-01 21:29:52 +02:00
dependabot[bot] 6693611497 build(deps): bump github.com/minio/minio-go/v7 from 7.1.0 to 7.2.0 (#21838)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 21:26:05 +02:00
dependabot[bot] 0e9446277d build(deps): bump cloud.google.com/go/storage from 1.62.1 to 1.62.2 (#21837)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 21:25:14 +02:00
dependabot[bot] b6bfa13f5f build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from 1.6.4 to 1.7.0 (#21835)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 21:24:40 +02:00
dependabot[bot] 88aa8132ae build(deps): bump actions/checkout from 4 to 6 (#21834)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 21:23:28 +02:00
dependabot[bot] bff8acb2d9 build(deps): bump docker/login-action from 4.0.0 to 4.2.0 (#21833)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 21:22:35 +02:00
dependabot[bot] 4ae2e26021 build(deps): bump the golang-x-deps group with 3 updates (#21832)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 21:22:25 +02:00
MetalSpork 042feb2b7f docs: expand restic cat documentation (#5679)
Co-authored-by: Michael Eischer <michael.eischer@fau.de>
2026-05-31 15:46:45 +00:00
Michael Eischer 474c094cac Merge pull request #21817 from eyupcanakman/fix/sftp-dir-permissions
sftp: Use mode 0700 for repository directories
2026-05-31 16:40:17 +02:00
Winfried Plappert 7566069bf3 docs: amend restic find documentation (#21818)
Co-authored-by: Michael Eischer <michael.eischer@fau.de>
2026-05-31 16:31:44 +02:00
Michael Eischer 53de77ea1a Merge pull request #21828 from MichaelEischer/fix-split-pack-index
repository: repair index: correctly handle split index entries
2026-05-31 16:30:49 +02:00
Michael Eischer a54ac48f60 restic: test that sorting nil blobs slices works 2026-05-31 16:22:58 +02:00
Michael Eischer 91a6e74fd5 repository: test split index handling in index rewrite 2026-05-31 16:22:58 +02:00
Michael Eischer e666980cec add changelog for split pack index handling 2026-05-31 16:22:58 +02:00
Michael Eischer 78b3411076 check: consider split pack index entries as repository damage 2026-05-31 15:58:33 +02:00
Michael Eischer 5b39ad861e repository: repair index: correctly handle split index entries
In restic <0.10.0, it was possible that the blobs of a pack file were
split across multiple indexes. `MasterIndex.Rewrite` however assumed
that each an index always contains the full description of a pack file.
Therefore, further index entries for a pack were filtered out as
duplicates. Now, the code also checks the blobs contained in the index
entry while filtering out duplicates.
2026-05-31 15:58:29 +02:00
Michael Eischer f86307d223 Merge pull request #21827 from MichaelEischer/fix-pack-repair
repair packs: correctly handle packs with missing/incomplete index entry
2026-05-31 15:57:50 +02:00
Michael Eischer 77a6bf3bb7 Merge pull request #21797 from MichaelEischer/always-include-explicit-targets
backup: prevent exclude of backup targets
2026-05-31 15:42:26 +02:00
Michael Eischer c95ef18afb repository: fix error handling in repair pack if blob upload fails 2026-05-31 15:40:15 +02:00
Michael Eischer 4c23c5946f add repair packs changelog 2026-05-31 15:40:15 +02:00
Michael Eischer 640b2489f6 repository: repair pack: test handling of not indexed packs 2026-05-31 15:40:15 +02:00