Directory synchronisation script.