为客户提供 PHP 系统更新程序
..对我的英语感到抱歉..
我有一些用PHP编写的IS之类的东西,我想为我的客户制作更新系统。这是我的愿景:
- 我将新版本上传到 ftp 服务器(或 Web 服务器),
- 单击更新后,系统应该比较版本(完成),备份旧脚本(完成)并像 rsync 一样进行更新。删除已删除、更改已更改、添加新文件和文件夹。
对于 rsync,我必须在我的服务器上建立 ssh 漏洞,但我不想这样做。我找到了zsync,但它是为文件设计的,而不是为文件夹系统设计的。
有什么简单的方法可以做到吗?一些智能 Linux 实用程序或一些已经用 PHP 编写的脚本?
感谢您的回答!
.. and sorry for my english ..
I have something like IS written in PHP and I would like to make updating system for my customers. Here is my vision:
- I upload new version to ftp server (or web server)
- After click on update, system should compare version (done), backup old scripts (done) and make update like rsync. Delete deleted, change changed, add new files and folders.
For rsync I have to make ssh hole to my server and I don't want to do it. I found zsync, but it is designed for files, not for folder system.
Is there any easy way to do it? Some smart linux utility or some already done script in PHP?
Thanks for answers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
rsync 可以在自己的端口上运行,根本不需要任何 ssh:https://help.ubuntu。 com/community/rsync#Rsync 守护进程
但这假设您愿意允许全世界访问您的程序。您想将其仅限于您的客户吗?
您还可以通过 git 发布您的源代码; git 还可以作为守护进程运行 http://www. kernel.org/pub/software/scm/git/docs/git-daemon.html 无需 ssh。再次强调,它假设您对整个世界接受您的程序感到满意。
rsync can run on its own port, without any ssh involved at all: https://help.ubuntu.com/community/rsync#Rsync Daemon
But this assume you're comfortable allowing the world at large to access your program. Do you want to restrict it to just your customers?
You could also publish your source via git; git can also run as a daemon http://www.kernel.org/pub/software/scm/git/docs/git-daemon.html without requiring ssh. Again, it assume you're comfortable with the world at large getting your program.