- Automated Backups: Back up multiple Docker volumes using Restic.
- Snapshot Management: Easily manage and restore snapshots.
- Customizable: Modify the backup script to suit your needs.
- Docker: Ensure Docker is installed on your system. Install Docker.
- Docker Compose: Ensure Docker Compose is installed. Install Docker Compose.
cd resticRestic is configured to back up data from several external Docker volumes on Redback VM. Before running the backup system, make sure these volumes exist.
data-lakehouse_minio-data
data-lakehouse_minio-config
fileuploadservice_dremio-data
dp-postgres-data
dp-es-data
dp-logstash-dataRun the following commands to create them:
docker volume create data-lakehouse_minio-data
docker volume create data-lakehouse_minio-config
docker volume create fileuploadservice_dremio-data
docker volume create dp-postgres-data
docker volume create dp-es-data
docker volume create dp-logstash-dataCreate a restic-password.txt file in the project directory and add your Restic repository password:
your-secure-password
Ensure the backup script is executable:
chmod +x scripts/backup.shRun the following command to start the Restic container:
docker-compose up -dCheck the logs of the `restic container to ensure backups are running:
docker logs -f restic-backupTo list all available snapshots, run:
docker exec -it restic-backup shTo restore a specific snapshot, use the following command:
restic restore `snapshot-id` --target /restoreReplace <snapshot-id> with the ID of the snapshot you want to restore.
The restored files will be available in the ./restore directory on your host machine.
To stop the Restic container, run:
docker-compose down- Ensure all required volumes are created before starting the container.
- Modify the
backup.shscript to customize the backup process. - Use
docker-compose logsto troubleshoot any issues.