0

我想要一个文件自动从一台服务器传输到另一台服务器。为此,我安装了腻子。

批处理文件:Transfer.Bat

cd "C:\Program Files\PuTTY"
psftp Username@RemoteServer.com -pw password -b MovementFileTransferScript.txt -be

文本文件:MovementFileTransferScript.txt

open RemoteServer.com
put D:/Backup/FULL_DB_BACKUP-DontDelete.txt R:\DB\Backup
quit

在上述文本文件中,D:/ 属于 Source Server,R:/ 属于 Destination Server。

当我运行批处理文件时,出现以下错误。

Using username "Username".
Remote working directory is /
psftp: already connected
local: unable to open D:/Backup/FULL_DB_BACKUP-DontDelete.txt

我检查了文件夹的权限,一切看起来都很好。有人可以让我知道这里有什么问题吗?

4

0 回答 0