Automatic/on change/scheduled deployment to Subdirectory on current server?

Is that possible to set an automatic/cron job/on change/scheduled deployment to a subdirectory on current server?