Is there any way to make NFS to ignore specified files and/or directories from the synced folder? I have done it with rsync
(rsync__exclude), but don't find any reference for NFS. I'm also looking for a solution for SMB. Any ideas?
In my case I had to keep cache and log files unsynchronized, and the solution I found out was to create a symbolic link instead of the cache and log folders (e.g. app/cache
and app/log
) which points to a directory outside the synchronized folder (e.g. /home/vagrant/project/cache
). Then, the files inside app/cache
are not synchronized. Hope it helps.