Please familiarize yourself with the technology you use. good starting point is 101: Self-hosting information for beginners
step by step tutorials are waste of time - technology changes fast and it is very hard to keep such tutorial up to date - but once you learn what your are doing adding a cron job is peace of cake..
PS: if you need periodic files:scan
your business process is broken and you should look how to fix it.