Creating a backup service container
1. Create a new container
This container should be a Linux-based container. The below docker-compose.yaml file is aa good example.
services:
backup-container:
image: ubuntu:22.04
container_name: volume-backup
command: sleep infinity
volumes:
# Mount all your existing volumes here
# Example format:
# - volume_name:/backups/volume_name:ro
- volume1:/backups/volume1:ro
- volume2:/backups/volume2:ro
# Add all 20+ volumes following this pattern
These volumes will be used to automate the backup process using a script.
2. Check the Mounts
Start up the container, connect to it, and check the volumes are correctly mounted to /backups/<name>