4 Commits
Author SHA1 Message Date
Ivan RazinandClaude Fable 5 f08203ef51 Fix restore losing /root/cert panel cert symlinks
Back up /root/cert alongside letsencrypt, and on restore recreate the
webCertFile symlinks from the DB for older backups that lack them —
without them x-ui serves plain HTTP and every nginx proxy_pass https://
(panel + diag bridge) breaks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 16:21:56 +03:00
Ivan RazinandClaude Fable 5 9638cf5b47 Fix backup failing on tmpfs /tmp: stage in backup store, check free space
On Ubuntu 24.10+ /tmp is a size-limited tmpfs, so mktemp -d staging could
not hold the uncompressed copy of the panel, web roots and certs. Stage
backup/restore work dirs inside /var/backups/x-ui instead, and verify
free space (2x estimated size + 100 MB margin) before touching anything.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 14:31:01 +03:00
Ivan RazinandClaude Sonnet 4.6 cb9aa79470 Back up /usr/bin/x-ui (management CLI) in addition to /usr/local/x-ui
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 16:20:35 +03:00
Ivan RazinandClaude Sonnet 4.6 c6a12850a1 Add x-ui-backup.sh: backup and restore script
Backs up nginx, x-ui DB+binary, mtr-backend, letsencrypt certs,
web content, systemd units, crontab, UFW rules. Restore installs
packages then recovers everything from archive.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 20:42:50 +03:00