我想将我的服务器数据备份到分配给我的备份服务器空间,我只能做FTP。 SFTP或SCP不是选项。
我正在尝试这种方式
ftp -n backup.server.net Trying 62.210.xx.xx... Connected to backup.server.net (62.210.xx.xx). 220 server ready - login please ftp> user xxxx yyyy 331 password required 230 login accepted ftp> put /var/www/html/index.php local: /var/www/html/index.php remote: /var/www/html/index.php 227 Entering Passive Mode (62,210,xx,xx,xx,xxx) 553 Can't open that file: No such file or directory ftp> get /var/www/html/index.php local: ./var/www/html/index.php remote: /var/www/html/index.php local: ./var/www/html/index.php: No such file or directory ftp>
但它不工作,请看看,并build议任何可能的方式来做到这一点。
谢谢
更新
我可以从/root上传,但不能从其他目录,我只能从其他目录上传,如果我先切换到FTP目录之前
ftp> put index-root.php local: index-root.php remote: index-root.php 227 Entering Passive Mode (62,210,xx,xx,xx,xx) 150 Accepted data connection 226 File successfully transferred ftp> ls 227 Entering Passive Mode (62,210,xx,xx,xx,xx) 150 Accepted data connection -rw-r--r-- 1 1001 ftp 0 Dec 7 11:10 index-root.php 226 1 matches total
使用cd导航备份服务器文件系统和
使用lcd导航本地文件系统
使用mput或mget如果你想上传/下载一个完整的文件path。
下面的例子
mput /var/www/html/index.php
希望这可以帮助