Enhance backup system with comprehensive scripts and documentation
Database Backup Scripts: - Add db-dump--standalone.sh for online database dumps (no downtime) - Add db-restore-from-dump--standalone.sh for restoring from dumps - Rename backup scripts with double-dash convention for clarity - Add comprehensive header comments to all backup/restore scripts - Document online vs offline, standalone vs swarm deployment types - Add KEEP variable default (7) to dump script for rotation Docker Configuration: - Add mongo-backup volume mount to docker-compose-standalone.yaml - Add mongo-backup volume mount to docker-compose-debug.yml - Add container names to debug compose for consistency with standalone Documentation: - Add comprehensive Database Backup & Restore section to README.md - Document all backup scripts with usage examples - Document automated cron schedule (04:00 daily) - Sunday: Full volume backup (KEEP=2, offline) - Monday-Saturday: Database dumps (KEEP=7, online) - Document backup directories and log file locations Git Configuration: - Add mongo-backup/ to .gitignore - Fix missing newline at end of .gitignore File Cleanup: - Remove db-scheduled-backup.sh (superseded by cron jobs) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ version: "3.7"
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:4.4.27
|
||||
container_name: evidencija-rezija__mongo
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 64000
|
||||
@@ -16,8 +17,10 @@ services:
|
||||
MONGO_INITDB_ROOT_PASSWORD: HjktJCPWMBtM1ACrDaw7
|
||||
volumes:
|
||||
- ./mongo-volume:/data/db
|
||||
- ./mongo-backup:/backup
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
container_name: evidencija-rezija__mongo-express
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
|
||||
Reference in New Issue
Block a user