Update example to use backup API automatically when necessary