Files
shop-platform/scripts/backup_restore/backup_config.json

59 lines
1.4 KiB
JSON

{
"version": "1.0.0",
"description": "服务器源码备份还原配置",
"backup": {
"source_dirs": [
"/var/www/html",
"/etc/nginx",
"/etc/mysql",
"/home/user/projects"
],
"exclude_patterns": [
"*.log",
"*.tmp",
"node_modules",
".git",
"__pycache__",
"*.pyc",
".DS_Store",
"thumbs.db"
],
"max_backup_size": "10G",
"backup_retention_days": 30,
"long_path_support": true
},
"storage": {
"local_path": "/backups/server-src",
"remote_path": "user@backup-server:/backups",
"cloud_storage": {
"s3_bucket": "my-backup-bucket",
"azure_container": "backups",
"gcs_bucket": "server-backups"
}
},
"database": {
"enabled": true,
"mysql": {
"host": "localhost",
"user": "backup_user",
"password": "secure_password",
"databases": ["app_db", "user_db"]
},
"postgresql": {
"host": "localhost",
"user": "backup_user",
"password": "secure_password",
"databases": ["app_db"]
}
},
"notifications": {
"email": "admin@company.com",
"slack_webhook": "https://hooks.slack.com/services/...",
"discord_webhook": "https://discord.com/api/webhooks/..."
},
"encryption": {
"enabled": true,
"public_key": "/path/to/public.key",
"private_key": "/path/to/private.key"
}
}