因為這邊沒有經費買任何的RAID 卡,也沒有Netapp storage,甚麼都沒有。所以只好找其他的Backup 方案。
將採用 PC 裝 centos 的 software raid 給 ESXi 用 nfs 的方式 mount,再用那個Shell (ghettoVCB.sh) 進行備份。
shell 備份主要採取 備份Snapshot 檔案資料為主,如果之前有Snapshot 的資料要先刪除掉之後才能進行備份。
備份路徑為指定的路徑+名稱+名稱-年-月-日_時-分-秒,目前測試過是正常的也可以正常運行。
適用於ESX(i) 3.5, 4.x+ & 5.x
以下是VMware原廠有一個shell備分方式,先記錄下來方便以後查詢。

http://communities.vmware.com/docs/DOC-8760
http://communities.vmware.com/message/1110839

可以指定Server 備份,也可以全部備份。如果是備份是否要關機的設定在shell裡面設定。
下面是語法:
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
   -c     VM configuration directory for VM backups
   -g     Path to global ghettoVCB configuration file
   -l     File to output logging
   -d     Debug level [info|debug|dryrun] (default: info)

(e.g.)

Backup VMs stored in a 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
        ./ghettoVCB.sh -a -e vm_exclusion_list

Backup VMs based on specific configuration located in directory
        ./ghettoVCB.sh -f vms_to_backup -c vm_backup_configs

Backup VMs using global ghettoVCB configuration file
        ./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)
        ./ghettoVCB.sh -f vms_to_backup -l /vmfs/volume/local-storage/ghettoVCB.log

Dry run (no backup will take place)
        ./ghettoVCB.sh -f vms_to_backup -d dryrun


arrow
arrow
    全站熱搜

    brucebin 發表在 痞客邦 留言(0) 人氣()