Slimshaneey
asked on
Whats the best way of deploying PHP code from a Linux Server to a Remote Windows Server?
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!
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!
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/backupserve r/source"
DESTSITE="ftp://srv:pass@ipaddress"
lftp -c "open -e \"mirror -Rev '$SOURCEPATH' '$DESTPATH'\" $DESTSITE"
Regards, Tobias
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/backupserve
DESTSITE="ftp://srv:pass@ipaddress"
lftp -c "open -e \"mirror -Rev '$SOURCEPATH' '$DESTPATH'\" $DESTSITE"
Regards, Tobias
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Never seen DeltaCopy before but its exactly what Im looking for!
Look at subversion.
http://subversion.apache.org/
http://svn.spears.at/