Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m trying to send an image file from one server to another using rsync. The sending server’s public key has been placed into the receiving server’s /root/.ssh/authorized_keys . (I’ll not use root later on. Just trying to keep things as simple as possible for now.)
I can get an image copied successfully to the receiving server from the command line.
rsync -va /var/www/html/nameofimage.jpg root@111.222.333.444:/images/
However, I do not know how to write this into a PHP file. I thought this would work.
<?php
exec('rsync -va /var/www/html/nameofimage.jpg root@111.222.333.444:/images/');
?>
But when this file is invoked from the command line, I receive the message … rsync: link_stat “/home/myusername/ssh” failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
Thanks for any direction with this.
50ff4e4b3c6c4999a12403b1ecda95
Erina Jones
05c643336f3a4578a0b414e11ed8fc
792d8c6065294b4da466a26b2a99e4
Joseph Roberts
KFSys
abdullah527382
Karan M Janthe
Brendo Ross
wendoj
d40d179698b0e4b36f241171147902