Commit 162cf746 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Rewrite rsync exclude rules in deploy task

Exclude `files/` directories and `settings.php` files from rsyncing.
parent 15215b0d
...@@ -128,7 +128,7 @@ def _rsync_platform(target, target_directory): ...@@ -128,7 +128,7 @@ def _rsync_platform(target, target_directory):
""" """
Helper function to rsync platform to server. Helper function to rsync platform to server.
""" """
local('rsync -a src/drupal/ {}@{}:{}'.format(target.get('user'), target.get('host'), target_directory)) local('rsync -a --exclude sites/*/settings.php --exclude sites/*/files src/drupal/ {}@{}:{}'.format(target.get('user'), target.get('host'), target_directory))
def _aegir_provision_platform(platform, aegir_path, aegir_destsrv): def _aegir_provision_platform(platform, aegir_path, aegir_destsrv):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment