mirror of
https://github.com/lucascbeyeler/zmbackup.git
synced 2026-04-24 22:55:56 +03:00
[GH-ISSUE #192] Error handling #155
Labels
No labels
Bug Report
Enhancement
Enhancement
Feature Idea
Feature Idea
Not Implemented
Question
Question
Task
Wontfix
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zmbackup#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FlorianHeigl on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/192
Hi,
i'm trying to step over #160, LDAP insta-destruction
Please note I have some memory issues and this stuff is something I probably already solved years ago, but have no recollection of. if it turns out to be a FAQ, just let me know and don't stab me, please.
Main thing I notice and that will matter for your 2.0 version:
Currently, there's bad handling of global state.
So, you'll get a report the restort process completed (true), which decides the main exit codes (bad), when it failed ALL individual steps (bad)
I'm dropping the whole log here for reference. But I'll explain again below.
So, point being:
for now,
but
What I've done for similar scripts is to have counters that track individual things
you can output that as json and you can have some thresholds
you can then also make some wise choices like
besides that it'll give you options to
if you consider that useful, I can try to find leftovers of example code. most was written at client projects and is thus not accessible.
@FlorianHeigl commented on GitHub (Feb 18, 2026):
i still need to solve the goddamn error now so I can get my mails back. the zimba-jetty-distribution incompatibilities have destroyed my setup for good, I don't want to restore it since Synology Backup inflates the LMDB file to a proper 100GB size and uninstalling Zimbra had already deleted the whole server. God I love this stuff.
@lucascbeyeler commented on GitHub (Feb 20, 2026):
Thanks for the feedback - I will keep that in mind as I proceed with Version 2.0. It has been so long since I did 1.6 in Bash that I am not sure how stable it is since there is a lack of unit and functional tests. And tbh putting effort on having those will be for nothing if I am working on V2.
If you find any fixes feel free to push and I will merge on the branch.