Solved

Whats the best way of deploying PHP code from a Linux Server to a Remote Windows Server?

Posted on 2010-08-17
4
287 Views
Last Modified: 2013-12-06
Hi there,
Im building Symfony PHP projects for use on a Windows IIS/PHP server (I know, I cant change it). Anyway, usually I develop on Linux and use an Rsync method built into Symfony to deploy to another linux server. I cant do that with Windows 2008 server  though, any thoughts on tools or methods that would avoid uploading the full 50Mb code every time? Ive tried FreeSSHd on the server but cant get 64bit rsync.exe or cygwin dlls that will work with the rsync on Debian Lenny...

Any help appreciated!
0
Comment
Question by:Slimshaneey
4 Comments
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 33457507
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33458155
Hi!

You can use 'lftp'. It's great for mirroring files and you'd just need FTP on the Windows server.

Source code: http://webscripts.softpedia.com/script/Internet-Browsers-C-C/FTP/LFTP-28455.html
alt
http://lftp.yar.ru/

Or just fetch the program with apt-get.

Example to mirror to sites:

SOURCEPATH="/pub/source/"
DESTPATH="/pub/backupserver/source"
DESTSITE="ftp://srv:pass@ipaddress"
lftp -c "open -e \"mirror -Rev '$SOURCEPATH' '$DESTPATH'\" $DESTSITE"

Regards, Tobias
0
 
LVL 3

Accepted Solution

by:
captainmish earned 500 total points
ID: 33462648
Ive used deltacopy (http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp) for similar things, both to and from the windows machine and was very happy with it. Used version (about) 3.0.6 or so against it with no issues. The setup is a bit different, but once its running it needs very little maintenance.
0
 
LVL 11

Author Closing Comment

by:Slimshaneey
ID: 33473573
Never seen DeltaCopy before but its exactly what Im looking for!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now