艾瑞克的 Hexo 空間

筆記-ghettoVCB for ESX Backup

~ # ./ghettoVCB.sh
Logging output to “/tmp/ghettoVCB-2012-10-16_15-46-10.log” …
2012-10-16 15:46:10 – info: ERROR: Incorrect number of arguments!

###############################################################################
#

ghettoVCB for ESX/ESXi 3.5, 4.x+ and 5.0

Author: William Lam

http://www.virtuallyghetto.com/

Documentation: http://communities.vmware.com/docs/DOC-8760

Created: 11/17/2008

Last modified: 2011_11_19 Version 1

#

###############################################################################

Usage: ./ghettoVCB.sh -f [VM_BACKUP_UP_LIST] -c [VM_CONFIG_DIR] -l [LOG_FILE] -d [DEBUG_LEVEL] -g [GLOBAL_CONF] -e [VM_EXCLUSION_LIST]

OPTIONS:
-a Backup all VMs on host (備份主機上所有的虛擬機)
-f List of VMs to backup (針對List名單內的虛擬機備份)
-c VM configuration directory for VM backups (VM 配置目錄for VM備份)
-g Path to global ghettoVCB configuration file
-l File to output logging (將LOG記錄寫到指定檔案內)
-d Debug level [info|debug|dryrun] (default: info) (Debug測試,不會產生備份)

(e.g.)

Backup VMs stored in a list
只備份list內的虛擬機
./ghettoVCB.sh -f vms_to_backup

Backup all VMs residing on this host
全部備份
./ghettoVCB.sh -a

Backup all VMs residing on this host except for the VMs in the exclusion list
除了排除清單(vm_exclusion_list)上的虛擬機外,剩下的都備份
./ghettoVCB.sh -a -e vm_exclusion_list

Backup VMs based on specific configuration located in directory
根據vm_backup_configs中特定配置來備份vms_to_backup內指定的虛擬機
./ghettoVCB.sh -f vms_to_backup -c vm_backup_configs

Backup VMs using global ghettoVCB configuration file
備份虛擬機時使用ghettoVCB.conf此設定檔來備份vms_to_backup內指定的虛擬機
./ghettoVCB.sh -f vms_to_backup -g /global/ghettoVCB.conf

Output will log to /tmp/ghettoVCB.log (consider logging to local or remote datastore to persist logs)
輸出的記錄到/tmp/ghettoVCB.log(可自行設定LOG所儲存的路徑和檔案)
./ghettoVCB.sh -f vms_to_backup -l /vmfs/volume/local-storage/ghettoVCB.log

Dry run (no backup will take place)
Debug測試,不會產生備份
./ghettoVCB.sh -f vms_to_backup -d dryrun

avatar
筆記-MKSBackup & ghettoVCB 免費備份 vmware esx 上的虛擬機

  1. 1. ghettoVCB for ESX/ESXi 3.5, 4.x+ and 5.0
  2. 2. Author: William Lam
  3. 3. http://www.virtuallyghetto.com/
  4. 4. Documentation: http://communities.vmware.com/docs/DOC-8760
  5. 5. Created: 11/17/2008
  6. 6. Last modified: 2011_11_19 Version 1