copy & sync file directory using a given filter that tries to keep only the core content