Google, why you do this?? You actually want: https://github.com/jakcodex/muledump
Protecting a backup marks it as not deletable. The automatic backup cleanup policy does not consider protected backups.
Exposing a backup marks it as deletable.
Any error when changing the protection state of a backup indicates a problem with your local storage.