Function server_forge::backup::configure_backup_schedule

source ·
pub fn configure_backup_schedule(config: &Config) -> Result<(), Box<dyn Error>>
Expand description

Configures the backup schedule based on the provided configuration.

This function creates a cron job for running backups at the specified frequency (hourly, daily, or weekly).

§Arguments

  • config - A reference to the Config struct containing the backup frequency

§Returns

Returns Ok(()) if the backup schedule is configured successfully, or an error if configuration fails.