How to create a backup with retention Here an easy script to run a backup an in this case with a 30 day retention: