Skip to content
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

Fix file changed during backup #176

Open
wants to merge 1 commit into
base: testing
Choose a base branch
from

Conversation

fflorent
Copy link
Contributor

Problem

Fixes #159 ?

If a file has changed during the backup, the admin gets a warning and the borg create command exists with status code 1. This code is meant to raise attention about an issue that may not be severe:
borgbackup/borg@7e6afc9

Solution

I propose to check the status code and exit only it is equal to 2 or above.

Also see this comment, which should solve the warning (I still think my patch would probably be helpful anyway for other cases): YunoHost-Apps/synapse_ynh#474 (comment)

Please note that I haven't tested it yet. I encounter the issue on production, I would like to get a review and I would be glad to beta test it afterward.

PR Status

  • Code finished and ready to be reviewed/tested
  • The fix/enhancement were manually tested (if applicable) ⇒ see above

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

@fflorent
Copy link
Contributor Author

!testme

@yunohost-bot
Copy link
Contributor

🪱
Test Badge

@yunohost-bot
Copy link
Contributor

Alrighty!
Test Badge

@fflorent fflorent changed the base branch from master to testing August 25, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Borg fails when file changes on disk during archive creation
2 participants