[4.1.0] — 2026-03-06
Added
- Sync: export/import/list — transfer apps between CIPI servers
cipi sync export [app ...] [--with-db] [--with-storage]— export all apps or specific ones to a portable.tar.gzarchive including configs, SSH keys, deployer config, supervisor workers, and optionally database dumps and shared storagecipi sync import <file> [app ...] [--deploy] [--yes]— import apps from an archive into the current server; recreates users, databases (with new credentials), nginx vhosts, PHP-FPM pools, supervisor workers, crontabs, and deployer configs; selectively import specific apps from a multi-app archivecipi sync push [app ...] [--host=IP] [--port=22] [--with-db] [--with-storage] [--import]— export, transfer via rsync/scp to a remote server, and optionally run import on the remote; interactive prompts for SSH host/port with connectivity test and remote Cipi version checkcipi sync list <file>— inspect archive contents without importing (apps, PHP versions, DB/storage inclusion)--updatemode for import — when an app already exists on the target, incrementally syncs .env (preserving local DB credentials), database dump (drop + reimport), shared storage, supervisor workers, deployer config, nginx vhost (alias changes), and PHP version changes; new apps are created as before;push --importuses--updateautomatically- Pre-flight checks on import: warns about missing PHP versions, blocks import of apps that already exist (unless
--update); domain conflict check — blocks import if domain or alias is already used by another app on target or by another app in the same import batch .envDB credentials automatically updated on import with the new server's values- SSH deploy keys preserved from source (same key works with git provider)
- Email notifications (optional) — receive alerts when backup or deploy fails
cipi smtp configure— interactive SMTP setup (host, port, user, password, from/to, TLS); supports Gmail, SendGrid, Mailgun, etc.; installsmsmtpon first usecipi smtp status— show if notifications are enabled and recipientcipi smtp test— send a test emailcipi smtp disable/cipi smtp enable— toggle notifications without losing configcipi smtp delete— remove SMTP config- Notifications sent automatically on: backup errors (per-app or full run), deploy failures, system cron failures (self-update, SSL renewal)
cipi-cron-notifywrapper — runs system cron jobs and sends email alert on failure- Config stored in
/etc/cipi/smtp.json;smtp.jsonincluded in sync export for migration - Vault: config encryption at rest — all JSON config files (
server.json,apps.json,databases.json,backup.json,smtp.json,api.json) are encrypted on disk with AES-256-CBC using a per-server master key (/etc/cipi/.vault_key); transparent read/write with backward compatibility for existing plaintext configs; existing servers are automatically migrated on update - apps-public.json — plaintext projection of
apps.jsoncontaining only non-sensitive fields (domain, aliases, php, branch, repository, user, created_at); automatically regenerated on every app change; thecipi-apigroup reads this file instead of the encryptedapps.json, so the vault key stays root-only with no privilege escalation - Encrypted sync export —
cipi sync exportnow encrypts the archive with a user-provided passphrase (AES-256-CBC);cipi sync importandcipi sync listtransparently detect and decrypt encrypted archives; protects SSH keys,.envfiles, database dumps, and credentials during transfer; all sync commands accept--passphrase=<secret>for non-interactive/automated usage (cron, scripts) - GDPR-compliant log rotation — automatic retention policies via logrotate:
- Application logs (Laravel, PHP-FPM, workers, deploy, Cipi system) — 12 months
- Security logs (fail2ban, UFW firewall, auth) — 12 months
- HTTP / Navigation logs (nginx access & error) — 90 days