mirror of
https://github.com/RipleyBooya/DVDBR.git
synced 2025-12-09 15:18:39 +01:00
3.4 KiB
3.4 KiB
Docker Volume Dirty Backup & Restore (DVDBR)
🚀 Quick Start
Script:
chmod +x DVDBR.sh
./DVDBR.sh
Follow the interactive prompts to configure your backup process.
❓ Why This Script?
DVDBR provides a simple yet flexible way to backup Docker volumes, whether locally or remotely, ensuring data integrity without unnecessary complexity.
🔹 Use Cases
- Migrating containers between hosts
- Regular backups of critical Docker volumes
- Disaster recovery preparedness
- Offloading backups to remote storage (NAS, cloud, etc.)
🔧 Prerequisites
- Linux-based system (Ubuntu, Debian, CentOS, etc.)
- Docker installed (
dockercommand available) - User must be in the
dockergroup (or providesudoaccess) - For remote backups:
sshaccess to the remote machinersyncandscpinstalled
🛠 How to Use?
- Run the script:
./DVDBR.sh - Follow the prompts to:
- Select Docker volumes to back up
- Choose between local and/or remote backup
- Decide whether to stop running containers
- Configure SSH settings for remote backup
- Confirm the backup process and let DVDBR handle the rest!
⚙️ Explanation of Features & Options
- Backup Modes:
- Local backup (stored in a directory of your choice)
- Remote backup via SSH (
ssh cat,rsync,scpfallback)
- Container Management:
- Detects running containers using selected volumes
- Offers to stop/restart containers before/after backup
- Filename Customization:
- Option to include a timestamp in the backup filename
- Failover Mechanism:
- Uses
ssh catby default for remote transfers - Falls back to
rsyncandscpif needed
- Uses
- Logging:
- Creates detailed logs with timestamps for troubleshooting
🏷️ Tags & Keywords
docker backup restore volumes automation shell script rsync scp ssh cat container management
📚 Third-Party Licenses
This script utilizes:
Refer to their respective licenses for details.
📜 License
This project is licensed under the MIT License – free to use, modify, and distribute with attribution.
🤖 AI Assistance & Acknowledgment
This project was developed with assistance from an AI-powered assistant, ensuring efficiency and optimization while maintaining human oversight.
🔗 Project Links & Contributions
- 🛠 Source Code & Issues: GitHub Repository
- 🇫🇷 Version française (WikiJS): ltgs.wiki (FR)
- 🇺🇸 English version (WikiJS): ltgs.wiki (EN)
If you find any issues or have suggestions, feel free to open a GitHub issue or contribute! 🚀