Backup Bug
Posted by PinkyBroham
Platform: UGREEN NAS SparkBox version: v1.6.315 Issue: sparkbox backup silently fails — no error output even with 2&1, no file created in /opt/sparkbox/state/backups/, directory had to be manually created (didn't exist). Steps to reproduce: 1. Dashboard Settings → Backups → "backup failed" with no error message 2. sudo sparkbox backup 2&1 — only prints the two INFO lines then exits cleanly 3. ls /opt/sparkbox/state/backups/ — empty Enabled modules: core, dashboard, files, jellystat, media, tdarr
3 replies
tomspark wrote:
Nice, so your backups are working fine — nothing broken. And good call posting it, better to flag a maybe-bug than sit on it. That's on Tom AI for pointing you at the wrong folder; I'll get its backup-path tip corrected so the next person doesn't go hunting in state/backups. Thanks for the report.
tomspark wrote:
Quick thing first: sparkbox backup actually writes to /opt/sparkbox/backups, not state/backups, so you may have been looking in the wrong spot. Check there: ls -la /opt/sparkbox/backups/ There's a decent chance a sparkbox-full-.tar.gz is already sitting there and it worked fine. If that folder's empty too, then it really is failing — run sudo sparkbox backup once more and paste the ENTIRE output (every line, not just the first couple) plus the exit code: sudo sparkbox backup; echo "exit: $?" That'll show me exactly where it stops. Appreciate the clear writeup.
PinkyBroham wrote:
I checked that folder and the tar file is there. I was basing it off of Tom AI and his recommendation of where to look. Figured I'd post here in case it was an actual bug