VMware ESX Console COS Backup > NFS

# ap Backup der COS Umgebung auf NFS Freigabe
#mkdir /mnt/nfsserver
#smbmount //nfsserver/vmback /mnt/nfsserver/ -o username=vmware


## Mounten der NFS Freigabe auf nfsserver/vMBACK
 

mount -t nfs 192.168.1.1:/VMBack /mnt/nfs
#oder mount -t nfs nfsserver:/VMBack /mnt/nfs


tar -cvzf /vmimages/`hostname`_COS_`date +%Y%m%d`.tar.gz --exclude /proc --exclude /tmp --exclude /vmfs --exclude /dok --exclude /mnt --exclude /vmimages /

mkdir /mnt/nfs/`date +%Y%m%d`-`hostname`
rpm -qa > /mnt/nfs/`date +%Y%m%d`-`hostname`/`hostname`_COS_`date +%Y%m%d.rpm.txt`

cp /vmimages/`hostname`_COS_`date +%Y%m%d`.tar.gz /mnt/nfs/`date +%Y%m%d`-`hostname`


umount /mnt/nfs