[Dirvish] Help fixing a broken vault (deleted the latest backup)
Michael Weidel
dirvish at weidel.org
Sat Dec 2 15:37:00 PST 2006
On Wednesday 22 November 2006 20:59, Bradley Lawrence wrote:
> I was cleaning up my dirvish vault because I had run out of space on the
> backup drive. I deleted some of the oldest backups that were laying
> around. Also, figuring the latest backup attempt had probably died
> partway due to running out of space, I deleted that directory too. But
> now dirvish complains:
>
> behemoth:default:20061121: ERROR: no images for branch default found
Since no one answered till now, I hope I can help out. Looking at the code,
you can see:
If the file "<vault-dir>/dirvish/default.hist" exists, dirvish does the
following:
dirvish looks at the file <vault-dir>/dirvish/default.hist and takes the
latest backup date (let's call it "<image-date>") in this file for which the
directory "<vault>/<image-date>/tree" exists.
Then it checks if it was called with the option "-init" (I think you didn't
call it with this option) or if the directory "<vault>/<image-date>" exists
(which has to exist, because the subdirectory "tree" existed).
So I see the following possibilites leading to this error message:
The file "<vault-dir>/dirvish/default.hist" doesn't exist or no one of the
directories in this file does exist. Could you please have a look at the file
"<vault-dir>/dirvish/default.hist" to see if this is the case?
If this file doesn't exist, dirvish takes "--reference" as reference or if it
isn't called with this option, it takes "--branch". In this case please have
a look at the reference or branch directories - do they exist?
I hope this information helps you and I hope I have listed all possibilities
above.
> Even though there are definitely full, complete backup images there...
> is it possible to repair my dirvish vault do you think? I'd like to
> avoid having to toast everything and re-initialize.
>
> Also, what is the "proper" way to delete images on a one-off basis? My
> expiry policy generally works well, but there has been a lot changing on
> the drive recently, resulting in abnormally high growth, which is why I
> had to go in and clean some stuff out... it seems I did it wrong.
I don't know if this is the "proper way", but you could expire images the
following way:
Change the date of the image you want to expire in the file
"<vault-dir>/<image>/summary" in the line which begins with "Expire". Then
run "dirvish-expire".
Cheers,
Michael
More information about the Dirvish
mailing list