With Copilot
Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
Sign in to use Acquia Copilot
In various circumstances, users will want to copy files to a different environment. Other applications may share a single infrastructure in standalone or multisite configurations, which can require several docroot directories on the same infrastructure. You can also use the rsync command to complete file transfers in this situation.
To transfer files to a different, local application:
.ssh directory in the destination directory.Set the .ssh directory permissions by using the following command:
chmod 700 .ssh
Use the following command to set the private key file permissions:
chmod 400
Run your rsync command. For example, the following is an rsync command between docroot directories on the same infrastructure:
rsync -avz -e "ssh -i /home/sourcedocroot/.ssh/id_rsa_rsync" [email protected]:/mnt/gfs/sourceenv.dev/files /mnt/gfs/destinationenv.dev/files/Setting up the SSH keys between applications is also a method to help enable SSH tunneling between infrastructure, or between your infrastructure and an external application. For more information, see the SSH tunneling for infrastructure-side applications Acquia Knowledge Base article.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.