Smalltarbkp is a great little opensource backup script available on github.com as well as here.

The update on this build is a couple of bug fixes..
1) When creating a new webdav on empty root folder for the first time
2) When upgrading with same version but different build
3) Fixed bug on maintenance expiration for webdav backups