[Box Backup] How to fix compare errors???

Magnus Homann boxbackup@fluffy.co.uk
Sun, 30 Apr 2006 13:33:45 +0200


Chris Wilson wrote:
> Hi Magnus,
> 
>> OK, I have compare errors between store and local files. About 5 files 
>> differ (unknown why).
>>
>> How do I fix this? It doesn't get fixed automatically, even though a 
>> "compare -aq" tells me there are differences. And I haven't found a 
>> way to do it manually.
>>
>> Somebody must have an idea on how to do this?
> 
> Box Backup looks at the timestamps on the files to determine whether to 
> do an incremental backup on them. So if you touch the files and then run 
> a backup, they should be fixed on the store.

That's what I thought. But, I'm not sure I'm comfortable with that 
solution (in principle). Touching a file modifies its attribute, which 
seems a bit strange. Backups shouldn't do that, I believe.

What if:
1) cp -p offending_file /not/backuped/directory
2) touch offending_file
3) Make sure bbackupd saves it
4) cp -p /not/backuped/directory/offending_file .

Would bbackupd update the store with the original date?

> Please could you let me know if it works? I'm very concerned about files 
> not being backed up properly. Is this still with the client and server 
> both on the same machine, kubuntu 5.10?

Yes, it is. I wouldn't be surpised if there was some disk errors behind 
all this.

Would it be very difficult to do add a command that finds the offending 
files and restoring them? It seems to me that bit errors in the store 
would not be repaired otherwise?

I will try you suggestion.

Thanks.