SUBSCRIBE VIA RSS


Subscribe to our feed

Symfony Experts

Symfony Experts
If you have an urgent question for a symfony-related issue, this is the place to ask.

Topics

Stack Overflow


The old fashioned way

RECENT TUNES

March 22, 2010 – 6:18am symfony sync command configuration (with symfony 1.0)

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).

Posted by in  Uncategorized   |  

Comments are closed.