fix: backup disabled message now explains how to enable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-03-08 13:33:36 +00:00
parent 225e0dddfc
commit 6bce1431ae

View File

@@ -31,7 +31,14 @@ export function createBackupCommand(deps: BackupDeps): Command {
const status = await deps.client.get<BackupStatus>('/api/v1/backup/status');
if (!status.enabled) {
deps.log('Backup: disabled (set MCPD_BACKUP_REPO to enable)');
deps.log('Backup: disabled');
deps.log('');
deps.log('To enable, set MCPD_BACKUP_REPO in your mcpd environment:');
deps.log(' 1. Create a bare git repo (e.g. on Gitea, GitHub, or local)');
deps.log(' 2. Add MCPD_BACKUP_REPO=<repo-url> to stack/.env');
deps.log(' 3. Redeploy mcpd (bash deploy.sh)');
deps.log(' 4. Run: mcpctl backup key');
deps.log(' Add the SSH key as a deploy key (with write access) in your git host');
return;
}