-
Notifications
You must be signed in to change notification settings - Fork 81
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
Error during garbage collection with subfolders in backup/ folder #50
Comments
Ok, I'll get it sorted out ASAP. |
Fixed. |
Many many thanks, mate. Works like a charm. |
@am1go steps: run gc on repo (just to see what will happen with the subfolder) ... maybe the centos / epel version isn't patched? |
replace /backups repo/backups (got stripped out from comments) |
Correct, 1.4.1 from EPEL still contains this bug. |
cool, will compile from source.... I don't get the 'Can't parse message FileHeader' but do get: "size of the encrypted file is incorrect" when trying to run gc, (using sub-folders) Guessing the only work around atm is to move all backups out of sub-directories? |
Using zbackup version 1.4-71-g9f93eca, when I attempt to gc a zbackup folder with subdirectories in the backups folder, I get the following in the output:
|
@am1go will there be a new release (1.4.1.1 or 1.4.2)? The latest release (on github at least) is the one from December 2014. |
Yes, I'll release a new version with fix as soon as I will have time for it. 2015-04-27 15:39 GMT+03:00 Dan Muresan notifications@github.com:
Kind regards, |
Hello, |
Oh, I forgot to fix it in 1.4 branch :( |
When storing backups in subfolders under the backup/ directory, garbage collection fails. Let me illustrate as follows. To me - without looking at the code - it looks like the subdirectories are read as backup files. I can reproduce with the latest git that I got to build (see other bug).
This makes deleting backups from the repository quite a lot harder because I can not clean up behind them. I'd appreciate it if someone could have a look at this. :) Thanks.
Some Version information:
Create Repositories, encrypted and unencrypted:
Put some content in:
Test garbage collection with a backup in, working fine:
Create folders inside the backup directory:
Test garbage collection again, not working anymore. It fails while trying to read the folder as file.
The error messages differ for encrypted and unencrypted repositories:
Add a backup in the created folders:
Try again, but still the same error with the folders no longer empty:
The text was updated successfully, but these errors were encountered: