Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prune does not remove all unneeded data #1029

Closed
Radioactive-Man opened this issue Jun 14, 2017 · 2 comments
Closed

Prune does not remove all unneeded data #1029

Radioactive-Man opened this issue Jun 14, 2017 · 2 comments

Comments

@Radioactive-Man
Copy link

Radioactive-Man commented Jun 14, 2017

Output of restic version

c:\SW_DEV\ResticBackup\restic>restic_x64.exe -r Z:\HDD\Restic_Repo version
restic 0.6.1 (v0.6.1-0-g3ae9be9)
compiled with go1.8.3 on windows/amd64

How did you start restic exactly? (Include the complete command line)

c:\SW_DEV\ResticBackup\restic>restic_x64.exe -r Z:\HDD\Restic_Repo check
Create exclusive lock for repository
Load indexes
Check all packs
pack 03f8006fd6065fc913ea6e9ced25dab939ffa63a0c7611cf56d2662c41883a67: not referenced in any index
pack 0ce57e56dc4c5cdc7c3790c9a376fdc64eec625db0136b8977d3714573600589: not referenced in any index
pack 1cf0d99f4f1c71f308d5e443b0cbe1f061f0897390f7a6840affa5cc7b5c4a9b: not referenced in any index
pack 305a5c0afb1361daaac5a887bab65a4f12b6424bf218b7fc4ccebb41a847fe8e: not referenced in any index
pack 5362055dd16276c712c8eb28bec591b6f4e07edc1d2b902e2faaca6c140e25bc: not referenced in any index
pack 7045584beeab6e4c5547902cb29ab21831c993a699c284fdc541c454f59c3751: not referenced in any index
pack 8fa90f3a7c00f73139919283bd3ba670df9c9bf58cfd80cd0cd8aff644d7f53f: not referenced in any index
pack 91d245b9a2ffff3171ca7cce1288073dc6b454880dd3e7fbec352b517d3baa7c: not referenced in any index
pack 9f4e00f91908bfe9b0b6152c20ea5e0acdbdf4e73639fadc28ee1d36fe79c240: not referenced in any index
pack a3b22e0cd2d1670e850068d4577ff38647a297bf1fc3424cde08943da77dde3e: not referenced in any index
pack b798f9660d9f9e1112aeb5dfa322ffdd9ff896e585dc5c38220dd126a9489825: not referenced in any index
pack c71297aff8f619fa3ac124d60840ba1b4bd39cd19e9194405d16bf9f875df024: not referenced in any index
Check snapshots, trees and blobs
Fatal: repository contains errors
c:\SW_DEV\ResticBackup\restic>restic_x64.exe -r Z:\HDD\Restic_Repo prune
counting files in repo
building new index for repo
unable to list pack 03f8006f: header is larger than file
unable to list pack 0ce57e56: header is larger than file
unable to list pack 1cf0d99f: header is larger than file
unable to list pack 305a5c0a: header is larger than file
unable to list pack 5362055d: header is larger than file
unable to list pack 7045584b: header is larger than file
unable to list pack 8fa90f3a: header is larger than file
unable to list pack 91d245b9: header is larger than file
unable to list pack 9f4e00f9: header is larger than file
unable to list pack a3b22e0c: header is larger than file
unable to list pack b798f966: header is larger than file
unable to list pack c71297af: header is larger than file
[0:35] 100.00%  14071 / 14071 packs
repository contains 14059 packs (71713 blobs) with 65.955 GiB bytes
processed 71713 blobs: 0 duplicate blobs, 0B duplicate
load all snapshots
find data that is still in use for 3 snapshots
[0:06] 100.00%  3 / 3 snapshots
found 71713 of 71713 data blobs still in use, removing 0 blobs
will delete 0 packs and rewrite 0 packs, this frees 0B
counting files in repo
unable to list pack 03f8006f: header is larger than file
unable to list pack 0ce57e56: header is larger than file
unable to list pack 1cf0d99f: header is larger than file
unable to list pack 305a5c0a: header is larger than file
unable to list pack 5362055d: header is larger than file
unable to list pack 7045584b: header is larger than file
unable to list pack 8fa90f3a: header is larger than file
unable to list pack 91d245b9: header is larger than file
unable to list pack 9f4e00f9: header is larger than file
unable to list pack a3b22e0c: header is larger than file
unable to list pack b798f966: header is larger than file
unable to list pack c71297af: header is larger than file
[1:13] 100.00%  14071 / 14071 packs
finding old index files
saved new index as c88b50a4
remove 1 old index files
done

What backend/server/service did you use?

Backup is stored on a CIFS share

Expected behavior

Prune should delete the unneeded files

Actual behavior

Prune does not delete the files

Do you have any idea what may have caused this?

I have killed (closed the command line window) the backup while it was running

@fd0
Copy link
Member

fd0 commented Jun 15, 2017

Thanks for raising this issue. What happens here is that restic got terminated while writing pack files, so the header (at the end of the file) wasn't written successfully. I agree that prune should remove those files.

Please know that this is cosmetic only, no data was/is at risk. It's a bit annoying since the files still consume space, but that's about it.

@fd0 fd0 added the type: bug label Jun 15, 2017
@Radioactive-Man
Copy link
Author

Yes for me this is fine I can delete the files and it is OK for me, so it is up to you how to handle this issue. Once more thanks for this great backup program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants