nextcloud / nextcloud/nextcloudpi

[Bug]: Monthly auto backup often runs two days in a row

Open
#1,421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs verification
Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

System information
NextCloudPi v1.46.7

It seems that the automatic backup system under nc-backup-auto has a bug where it will run two days in a row. This month, it ran yesterday (January 30th, 1900 GMT-8) and now is running again today, the 31st. I am not positive but this may only happen on months that end in the 31st.

The backup periodicity (in days) is the default of 30 and I have tried changing this to 45 days before without any success.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the nc-backup-auto entry point and trace how the 30-day periodicity is calculated around month boundaries. Reproduce the January 30/31 case or an equivalent 31-day month, then verify that automatic backups do not run on consecutive days while the configured periodicity remains respected.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.