Rsync using checksum in Symfony
Symfony framework allows easy deployment of the project. All you need to deploy using rsync – is to type symfony sync production
(add go
to the command for real deploying). It takes connection parameters from config/properties.ini.
However it is using files comparison by size and modification date, default for rsync
utility. It isn’t in symfony documentation, but you can easily change rsync parameters to whatever.
Default parameters symfony uses are -azC --exclude-from=config/rsync_exclude.txt --force --delete
. To use checksum comparison add the line to [production] in properties.ini:
parameters="-azC --exclude-from=config/rsync_exclude.txt --force --delete --checksum"
Wednesday, March 5th, 2008