mounting vmfs over ssh on esxi system on a linux box
https://serverfault.com/questions/549858/rsync-over-ssh-to-esxi
why not mount esxi file systems on a third machine with sshfs and rsync support, like so:
#mount src esxi file system
sshfs root@aaa.bbb.ccc:/vmfs/volumes/ mnt/sshfs/
src="mnt/sshfs/"
vmd="Storage_vmfs5/vm1-data"
#mount dst esxi file system
sshfs root@xxx.yyy.zzz:/datastore-vms/ mnt/tmp/
dst="mnt/tmp/"
#copy vm files
rsync -av --progress --stats --delete --force "$src$vmd" "$dst"
#unmount
fusermount -u $src; fusermount -u $dst
--30--
No comments:
Post a Comment