Reputation: 23
I am creating a batch file that will FTP a backup of a specific directory from a server that is publicly accessible to a server that is only accessible to those on our network. (From our webserver to our intranet server). Since I can't get to the intranet server from the webserver, I've created the FTP batch file on the intranet server. I have a user set up on my webserver in FileZilla Server that has access to the directory that I want to copy all of the files and subdirectories from. I have this text file set up (backupTransfer.txt): open myIPAddress username password hash bin lcd E:\backups\website mget "C:\Backup\testFile.txt" quit
Then I have my batch file to run that (websiteBackup.bat): FTP -v -i -s:C:\batch\backupTransfer.txt
When I run this, I get this message: ftp>mget "C:\Backup\testFile.txt" Directory not found Cannot find list of remote files ftp> quit
I've tried using cd to specify the directory on the webserver (although, that's not really necessary since the user I'm using only has FTP access to the C:\Backups folder and it's subdirectories.
I don't know if this is relevant information, but I have another batch file that correctly works that transfers a file from the intranet server to the webserver. I just can't seem to get the intranet to pull a file from the webserver. Any help is greatly appreciated!
Upvotes: 0
Views: 1136