Script for backing up in a loop every n seconds