plugins icon indicating copy to clipboard operation
plugins copied to clipboard

plugins/sysutils/nextcloud-backup uploads backup every day, regardless of changes

Open Nuadh123 opened this issue 3 months ago • 4 comments

Suggestion:

Hook the plugin nextcloud-backup to the core config backup system, so each uploaded file to nextcloud reflect a change in the configuration. Alternatively, sync the /conf/backup/ directory instead of the main config at every time interval.

Problem description:

The plugin nextcloud-backup uploads a copy of the configuration every day, regardless of if it's changed since the last time or not. This causes two "problems":

  1. Many files, where most of them are identical. Messy and a waste of server resources.
  2. Granularity of backups are time rather than change. This causes the history of changes to be lost in the 24 hour window between backups

Excpected behaviour:

no new uploads unless there's actual changes in the configuration since last upload

Note:

The plugin gdrive-backup seems to have a rudimentary logic around this: GDrive.php#224.

Nuadh123 avatar Sep 20 '25 13:09 Nuadh123

Thank you for creating an issue. Since the ticket doesn't seem to be using one of our templates, we're marking this issue as low priority until further notice.

For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.

The easiest option to gain traction is to close this ticket and open a new one using one of our templates.

OPNsense-bot avatar Sep 20 '25 14:09 OPNsense-bot

The maintainer of the plugin is inactive. If you want to try providing a PR yourself that would be the best course of action.

fichtner avatar Sep 20 '25 18:09 fichtner

May I suggest the following attachment?

This uploads files from /conf/backup/ if it doesn't exist in the remote location.

Nextcloud.php.patch

Nuadh123 avatar Sep 21 '25 15:09 Nuadh123

Probably nicer to have a patch against your git instead:

Nextcloud.php.patch

Nuadh123 avatar Sep 21 '25 16:09 Nuadh123