[Borgbackup] Lock error
Steve Schow
steve at bstage.com
Mon May 16 12:14:13 EDT 2016
it is remotely possible that the one time this happened to me before was exactly because of the cron thing because I had scheduled a cron to do it, while this job was still in progress…..and the next day it may have tried to run again while the first one was still running. Unfortunately I wasn’t redirecting logging yet when that “might” have happened…so I don’t have any way to know. I will be implementing a mechanism to prevent borg from being able to run over itself.. I had to go back and delete several check point files and restart the backup using an archive name from the day before (since the name of the archive was using a datestamp), and its been running fine ever since…I hope almost done.
back to my original question… how can I automatically clean up the lock files when this happens again?
Did anyone have a look at my bash shell traps?
On May 16, 2016, at 10:08 AM, Adrian Klaver <adrian.klaver at aklaver.com> wrote:
> On 05/16/2016 09:03 AM, Steve Schow wrote:
>> It hasn’t happened again, so i can’t replicate it. Well actually I can easily..by simply hitting ctrl-C while its running it ends up in the broken lock state.
>>
>> However I have low confidence in using borg for automated backups at this point due to this.
>
> Well I use it on multiple machines to back up data from even more machines via cron jobs that run day and night and the only problems I have had are self inflicted. Namely that I was not paying attention and had cron jobs walk over the same repo at the same time. The worse that happened was that particular backup failed, but the next succeeded.
>
>>
>>
>> On May 16, 2016, at 2:18 AM, Thomas Waldmann <tw at waldmann-edv.de> wrote:
>>
>>> There is a problem why borg can't finish the backup (crashes or gets killed, leaves the lock behind)
>>>
>>> That is the root cause you need to find and fix.
>>>
>>>
>>> --
>>>
>>>
>>> GPG ID: FAF7B393
>>> GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393
>>>
>>> _______________________________________________
>>> Borgbackup mailing list
>>> Borgbackup at python.org
>>> https://mail.python.org/mailman/listinfo/borgbackup
>>
>> _______________________________________________
>> Borgbackup mailing list
>> Borgbackup at python.org
>> https://mail.python.org/mailman/listinfo/borgbackup
>>
>
>
> --
> Adrian Klaver
> adrian.klaver at aklaver.com
More information about the Borgbackup
mailing list