I recently discovered a quick way to edit the rsync parameters used when executing the symfony sync command with symfony 1.0.
I wanted to ignore timestamp and permissions differences, which wasn’t possible using the default configuration due to the -a (which stands for ‘archive’ mode) parameter added to the rsync command. If you want to override the default settings, all you have to do is add a ‘parameters’ key to your properties.ini file. Here is an example:
[staging] host=yourhostname port=22 user=yourusername dir=your/path/to/your/app parameters='-rlDzC --force --delete --exclude-from=config/rsync_exclude.txt'
Keep in mind if you set your own custom parameters you won’t benefit from any of the default settings so you should include them yourself (like –force, –delete, and your rsycn_exclude file).



