Description : Here I have describe how to take Virtual Machine backup using shell script
Procedure :
Procedure :
- Download script from below URL:
- Upload it in server using winscp
- Login ssh console using putty
- Go to location where you have copy extracted folder [ghettoVCB-master]
- Give execute permission to ghettoVCB.sh file using below command
- Create one file name vmbackup where write all vm name like as follow:
VM2
VM3
- Open ghettoVCB.sh file and make changes as follow:
VM_BACKUP_ROTATION_COUNT=2 ### Backup Retention File ###
- Run below command to start backup
- To set cron job in VMWare open /var/spool/cron/crontabs/root file
Note: In example I have set backup at every saturday 4:30 AM backup
No comments:
Post a Comment