lamw / ghettoVCB

ghettoVCB
MIT License
1.29k stars 365 forks source link

Using SCP to copy files in a remote destination folder #306

Open ste-giraldo opened 1 year ago

ste-giraldo commented 1 year ago

Since Ghetto is currently able to write only on a local mounted folder: a disk path or a NFS path, we have two problems, the local disk is fast but maybe not big enough to keep 3 backups of all VMs, on the other side the NFS folder is slow to write. I'm suggesting to change the script code and use SCP to copy the files on a remote SSH server which is faster, secure (each packet is verified thanks to the SSH protocol) and doesn't need to be mounted in advance from the ESXi server. Remember to add the SSH port option in the code, since sometimes people change the SSH server port. Thanks.