We have a unique situation whereby we are going to be hosting a website within a company's private network. They have given me RDC access.
However, the remote machine has no internet access, so I am connecting to a server that does using Putty. From here I am trying to connect to a server that is temporarily hosting the files and download them via ftp, using wget.
Here's what I'm running:
sudo wget --ftp-user=MYUSERNAME --ftp-password=MYPASSWORD myurl.net
The connection is OK, yet as soon as it hits some code like a require statement or a WordPress function, the download stops and the a single file containing a fatal error message is all that has been downloaded.
Is there a way to simply download the files, without wget attempting to actually run the code?
Here's an example of an error I get (this was after directly stating to download the header.php file - it doesn't get this far just stating the directory):