deploy: MOM 服务器备份补 venv/node_modules 排除,加速备份
This commit is contained in:
@ -24,6 +24,8 @@ ssh $SERVER "mkdir -p $REMOTE_BACKUP_DIR && \
|
||||
--exclude='inventory-backend/uploads' \
|
||||
--exclude='inventory-backend/pgdata' \
|
||||
--exclude='inventory-backend/pgdata_docker' \
|
||||
--exclude='inventory-backend/venv' \
|
||||
--exclude='inventory-web/node_modules' \
|
||||
inventory-backend inventory-web docker-compose.prod.yml && \
|
||||
echo '>> 备份 SSL 证书...' && \
|
||||
(tar -czf $REMOTE_BACKUP_DIR/ssl_backup.tar.gz ssl 2>/dev/null || echo '⚠️ ssl 目录不可读(属主 root)或不存在,跳过该备份') && \
|
||||
|
||||
Reference in New Issue
Block a user