digint / digint/btrbk

Is there anything bad that can happen from not using lock files?

Open
#441 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Perl
Stars
2.1k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

If I'm not mistaken, using lock files would make it so btrbk won't run twice at the same time, and just prevents the extra instances of btrbk from running if there already is one (as opposed to queuing them up or something). So my question is: so long as you're taking snapshots of different subvolumes, going into different destinations, is there anything bad that can happen from not using lock files so multiple instances of btrbk can run simultaneously?

For example, if I was taking snapshots of my home directory every hour and sending them to their own snapshot directory, and taking snapshots of my root directory every 4 hours and sending them to a separate snapshot directory, all scheduled via cron jobs, then there would be that overlap every 4 hours. But is there some kind of problem that could arise from doing that?

I guess ultimately I'm trying to figure out when lock files are needed/recommended and when they're not.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.