備份方法
- service vmware-vpxd stop
- cd /opt/vmware/vpostgres/1.0/bin/
- ./pg_dump VCDB -U vc -Fp -c > /backup/vcdb_$(date +%Y%m%d)
- service vmware-vpxd start
恢復方法:
- 取得DB之帳密
cat /etc/vmware-vpx/embedded_db.cfg
- service vmware-vpxd stop
- PGPASSWORD=eiruieruiwdjfiowe ./psql -db VCDB -Upostgres - f VCDB_Backup
- service vmware-vpxd start
时间: 2024-10-27 07:53:00