-
Notifications
You must be signed in to change notification settings - Fork 201
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
schedule.time should specify 'hour' but seems to specify 'minute' #1270
Comments
Did you create the profile manually? And what does the BiT GUI show as schedule time for this config/profile? IMHO the time is a number but NOT the hour but a decimal-codes system of the form:
So 1 o'clock should be 'profile2.schedule.time=200' (for hour = 2 and minutes = 00). See the code for this: https://github.com/bit-team/backintime/blob/master/common/config.py#L1507 Please set the Hour of the schedule in the BiT GUI under "Settings" and check how the |
Hi, I am not running the GUI (I am on a headless server so hand-crafted my own config). Your investigation into the code seem sound so I updated my config and it does seem to have fixed things perfectly, thankyou. I will leave this ticket open though, since I think there is still a defect (but in the documentation, now), since I used the man pages to guide me and that seems to indicate that schedule.time should be in the range of 0-24 - https://manpages.ubuntu.com/manpages/jammy/man1/backintime-config.1.html Thanks for your help. |
@Whytey Thanks for reporting, backtesting and clarifying the issue, I fully agree that this is no bug in the code of BiT but a documentation problem in the man page file https://github.com/bit-team/backintime/blob/master/common/man/C/backintime-config.1#L147 @Codeberg-AsGithubAlternative-buhtz I could create a pull request but I guess it is easier for you to fix the documentation directly since you have commit rights on the repo. Instead of
which is wrong since hour and minute in the source code is also used for the modes WEEK, MONTH and YEAR https://github.com/bit-team/backintime/blob/master/common/config.py#L1576 I suggest to modify the backintime-config man page like this:
You can test the correct rendering of the man page with
|
Awesome. ;) I don't have commit rights yet. But I work on it. ;) I would suggest you open a PR and mention @emtiu in the comment. He has the rights currently. |
Fixes #1270 (schedule.time doc outdated)
Using backintime version 1.3.2 from the command line only. No GUI installed.
I have three profiles. I intended to run profile 1 and 2 daily at 1am and 2am respectfully. Profile 3 should be run every Sunday at 3am.
Config snippet:
When I run
check_config
, it goes through the process of creating the crontab entries, but seems to specify the times as 1, 2 and 3 minutes past midnight:Seems like a bug to me.
Cheers,
Whytey
The text was updated successfully, but these errors were encountered: