Write the process down and run it by hand for a few weeks first. Automating a mess gives you a faster mess.