Loft Deploy

User (non-versioned) files component

Loft Deploy supports up to three directories of non-versioned files as part of the files fetch/pull operation. This is ample to cover Drupal's concept of public and private directories, with one more directory to spare.

Be sure that the prod and staging directories map to the correct files path to local, e.g. prod:local_files2 maps to local:local_files2 and so on.

Configuration

config var rsync exclusion file
local_files files_exclude.txt
local_files2 files2_exclude.txt
local_files3 files3_exclude.txt

Excluding certain files using files_exclude.txt

You may set Loft Deploy to ignore certain user files by creating a file .loft_deploy/files_exclude.txt. This will be used by the rsync program as an --exclude-from argument. Notice that you will need to use files2_exclude.txt and files3_exclude.txt to target files in those other directories, if necessary.

Some highlights from the rsync documentation:

Filenames with special chars

There appears to be a shortcoming with filenames that contain special chars. The file sync may not work in this case. Easiest fix is to insure filenames do not have special chars, like accents, etc.