-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheduling for secondary profile is ignored: set to run every 4 days; runs every 15 minutes. #1479
Comments
Thanks for reporting this. I assume there is no problem here. This "repeatedly every 4 hours (like anacron)" is not realized via cron or anacron for real. Schedule jobs like this result in a crontab job run every 15 minutes. Then BIT itself check if the 4 days are up or not and decide itself if the job need to run or not. Beside that crontab line do you have any other indication that your job is not run every 4 days? About
|
Thanks for your reply. Well... these are yesterday's backups: I was getting a frequent notification error from BIT, because some Thunderbird files are in use. That's when I opened up BIT and saw that snapshots were being taken every 15 minutes, and it kept happening while I was checking and rechecking the settings. I only have one other profile (Main profile) that is set to run every 2 days, and that one seems OK. Now I'm wondering if this issue could be related with #988 |
Can you show me the output of The problem might be related to #988. This is a good guess. Please have a look into the logfiles of one of those snapshots. Look for errors and warnings please and post them here. This info is important for us to reproduce the problem. Can you please also try to start the backup job manually? Run the GUI in debug mode ( I'm not sure but my thesis is: The scheduling works fine and as expected. If a backup job is not successful BIT will try it again as soon as possible. In your case it is every 15 minutes. No matter that you have snapshots they are not without errors. That might be the reason: BIT retry creating snapshots until there is no error anymore. If it is about files in use by Thunderbird. Can you wait 15 minutes without running Thunderbird and see if the next snapshot is successful? |
@danielaixer Please try the command |
Regarding the diagnostics stacktrace: This codes...
cannot match the localized output of
Perhaps |
Yes, I'll take that.
No problem. Thanks for reporting. From my understand the behavior you described is by design the usual and expected behavior. No matter that it is not ideal from a users perspective. So there is no bug in scheduling. From your point of view as a user: You set it to run every 4 days. When the job fails. What would you expect (or need) from a backup software in that case? Should it automatically retry? When should it retry? Or do you want to make this behavior configurable? e.g. "Retry every 3 hours" or something like this? Note to me: |
@danielaixer THX for reporting this issue and the solution! OK, to summarize the reason for this unexpected behavior:
Is this correct, a new snapshot is created every 15 minutes? I think that is not what a user wants (perhaps a few retries, but not endless retries). @buhtz Should we make a feature request for adding a maximum number of retries? |
Yes and no. 😄 I don't see the solution that easy. The situation is much more complex and is related to the way how BIT implements the scheduling. Some schedules are handle via crontab in a crontab way. The others "anacron-like" are not handled by anacron but simulated by BIT itself (via that 15-min crontab jobs). A meta issue is OK. It is a question of design. We need to decide which scheduling options/behaviors we do offer. I have some thoughts about it but not an opinion about a user-friendly solution. It is related to #1449 where I wrote done some of my thoughts and discoveries. As a first shoot to prevent Issues like this here we could try to use the same behavior as crontab-backup-jobs do. A retry should be done 4 days later. Not ideal but easy to fix in a first place. I assume BIT ignores the schedule timespan when the latest job had errors. |
BTW, thanks everyone for the help and the quick replies! I guess BIT's retry "policy" in case of error has changed since v1.0.34. Back then there wasn't a retry policy, or I was lucky and it wasn't working for me. Aside of @buhtz's proposal, here's my crappy two cents: we now have a checkbox to continue in case of error. What about another checkbox to "consider snapshots with errors as valid/successful"? |
🤣 🤣 🤣 Never realized that this checkbox exists. Thanks! |
@buhtz Unfortunately we have an end user documentation gap here for all these options: https://backintime.readthedocs.io/en/latest/settings.html#options I think we should keep this issue open to
|
@aryoda Yes, that one! 🙂 |
@danielaixer Could you please post the output of |
Is this OK? env LC_ALL=C encfs
|
Yes, that is perfect, thanks for testing! |
C locale is always used when extracting version strings from external tools in diagnostics output. Related #1479
This is the line which is responsible for the repeating snapshots: backintime/common/snapshots.py Lines 1248 to 1250 in 6ee6c84
If you want to don't want to retry after an error you can remove the |
Ubuntu MATE 22.04
BackInTime 1.3.3-3 (same issue on BIT 1.2.1-3)
I've created a second profile that appears as "profile2.name=Docs" in the config file.
This is the secondary profile scheduling settings:

These are the schedule related entries that are generated on "~/.config/backintime/config":
These are the relevant lines in the crontab file when running "crontab -e":
I've even deleted the config file, created it from scratch and the issue persists.
To help us diagnose the problem quickly, please provide the output of the console command
backintime --diagnostics
.Additionally, please specify as precisely as you can the package or installation source where you got BackInTime: https://launchpad.net/~bit-team/+archive/ubuntu/stable (deb https://ppa.launchpadcontent.net/bit-team/stable/ubuntu jammy main)
The text was updated successfully, but these errors were encountered: