[Borgbackup] Restore
Thomas Waldmann
tw at waldmann-edv.de
Sat Mar 11 19:05:36 EST 2023
>>>>>>>> OSError: [Errno 5] Input/output error:
>>>>>>>> '/mnt/rs1219a/SRV/config.old'
>>>>
>>>> On what kind of filesystem and storage device is that file?
>>>
>>> it's ext4 running on an Synology NAS RS1219+, mounted via sshfs.
>>
>> OK, than you likely have discovered a bug in sshfs (where it does not
>> fully emulate a normal fs's behaviour).
>
> I remember similar incidents e.g. with configuring network interfaces
> that showed unexpected results when executed in a row within a script
> vs. launched one by one at the command line. The solution (AKA
> workaround) was just to insert a sleep command between the single
> commands.
If the amount of required sleeping can have a safe and still rather
short upper limit, that might be a solution.
If that can't be determined, it will just break under different
circumstances - then I'ld rather tend to say "it's not borg's problem if
your fs does not work correctly".
> I'd like to try analogous steps here: it looks easier to
> achieve, and this incident only occurs with borg, if killed by SIGTERM,
> so far. I suspect that there could be a timing issue, so some little
> pauses between the single steps while closing the tasks and files could
> help to clarify this.
>
> I have no clue of coding in python, I even don't know if it needs a
> compiler or something like that to get it run. So I would appreciate
> detailed instructions on how to do that.
You can just edit the file you see in the traceback (and to make sure,
remove the same_name.pyc file).
More information about the Borgbackup
mailing list