backup script from https://wiki.metadata.net/Backups