Install
openclaw skills install docker-volume-backup-or-restoreRobust Docker volume migration and backup using per-volume encrypted archives and registry-based transport. Supports dry-runs, container exclusion, and safe restoration without executing untrusted code.
openclaw skills install docker-volume-backup-or-restoreThis skill provides a secure, registry-backed workflow for migrating or backing up Docker volumes. Version 2.0 introduces a per-volume encryption architecture, creating separate encrypted archives for each volume. This improves reliability for large volume sets and eliminates path-parsing ambiguities during restoration.
Key features:
docker cp. The backup image's code is never executed.--exclude-stop flag for critical infrastructure (like proxies or AI providers).docker login).alpine image for crypto operations. It must be pre-pulled for safety.Creates encrypted archives of all local volumes and pushes them as a single multi-layer image.
# Basic backup (auto-derives image name from hostname)
bash docker_volume_backup_or_restore.sh --backup --encrypt-password 'your-password'
# Backup with specific image and excluded containers
bash docker_volume_backup_or_restore.sh --backup-image user/repo:tag --encrypt-password 'pass' --exclude-stop proxy,db
What happens:
--exclude-stop)..tar.gz.enc file.scratch-based image containing only these encrypted archives.Pulls a backup image and restores volumes to the local host.
bash docker_volume_backup_or_restore.sh --restore user/repo:tag --encrypt-password 'your-password'
What happens:
docker cp the archives out (safely).--backup [IMAGE]: Start backup mode. Optional IMAGE override.--backup-image IMAGE: Explicit backup image reference.--restore IMAGE: Start restore mode using the specified image.--encrypt-password PASS: Required. Password for AES-256 encryption/decryption.--exclude-stop LIST: Comma-separated list of containers to keep running during backup.--dry-run: Show planned actions without executing them.openssl AES-256-CBC with PBKDF2. Passwords are never stored in the image.