Add backup and restore scripts

This commit is contained in:
2026-09-18 12:24:08 +03:00
parent 2fc905986a
commit a98df9c264
8 changed files with 237 additions and 7 deletions
+6
View File
@@ -2,6 +2,12 @@
These scripts support the EternityMail Docker Compose deployment. Run them from the repository root.
## Full server backup and restore
`backup-server.sh` and `backup-server.ps1` create a portable `.tar.gz` backup containing all Stalwart named volumes, Roundcube database/configuration, and deployment settings. They stop the mail services for a consistent backup and start them after completion.
`restore-server.sh` and `restore-server.ps1` restore that archive to Linux or Docker Desktop. They refuse to overwrite a deployment unless passed `--force` or `-Force`; that option permanently replaces current mail and Roundcube data. See the repository README for migration steps and commands.
## `install-stalwart-cli.sh`
Installs the latest official `stalwart-cli` release on Linux. The upstream installer places the binary in the system executable path, normally `/usr/local/bin`.