Deployment 无SSH访问的Rsync
首先,我不确定这是提出这个问题的最佳地点,所以如果它需要移动,那很酷 我共享了没有SSH访问的主机,在部署/rsyncing方面我有什么选择Deployment 无SSH访问的Rsync,deployment,ssh,shared-hosting,rsync,Deployment,Ssh,Shared Hosting,Rsync,首先,我不确定这是提出这个问题的最佳地点,所以如果它需要移动,那很酷 我共享了没有SSH访问的主机,在部署/rsyncing方面我有什么选择 我用PHP构建应用程序并使用GIT,不确定这是否会改变情况…Rsync旧版本使用rsh作为传输层,被更安全的ssh取代, 但是,您可以强制它使用带有-e标记(-rsh)的其他传输 备选方案 (不带ssh) 不带ssh(读取远程操作部分) HTTP上类似rsync的行为我认为Joao忽略了在(锁定的)共享托管环境中工作的微妙之处 但是,如果您确实需要执行
我用PHP构建应用程序并使用GIT,不确定这是否会改变情况…Rsync旧版本使用
rsh
作为传输层,被更安全的ssh取代,
但是,您可以强制它使用带有-e标记(-rsh
)的其他传输
备选方案
(不带ssh
)
不带ssh(读取远程操作部分)
HTTP上类似rsync的行为我认为Joao忽略了在(锁定的)共享托管环境中工作的微妙之处 但是,如果您确实需要执行正确的rsync,您是否考虑过从共享主机执行rsync拉取操作
- 我假设有一些DSL路由器,可以解析其外部IP地址
- 您可以设置从rsync直接套接字到开发盒的端口转发
- 您可以编写一个简单的PHP(或其他)脚本,将rsync请求封装在
中。(我有一个在共享服务上执行此操作的标准命令)proc\u open()
$ remote rsync --version
rsync version 3.0.6 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, no symtimes
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
$ remote rsync --version
rsync version 3.0.6 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, no symtimes
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.