Skip to main content

set_backup_enabled

Function set_backup_enabled 

Source
pub fn set_backup_enabled(service: &str, enabled: bool) -> Result<bool>
Expand description

Enroll or unenroll a service in backups by flipping backup_enabled in its metadata.toml. Returns whether the flag actually changed (false if the service isn’t installed, or was already in that state). This on-disk flag is what list_backup_enabled and a no-argument ryra backup manual read, so it is the single source of truth both the CLI picker and the rpc layer set.