pub fn backup(&mut self) {
        self.save_to_file(true);
        if let Err(error) = self.rotate() {
            error!("Failed to rotate files: {:?}", error);
        };
    }
/// Save the current current state in a file with a timestamp.
/// At the same time remove old state logs from the log directory.
/// This function is called, when large changes to the state are applied, e.g. clean/reset.
Save the current current state in a file with a timestamp.
At the same time remove old state logs from the log directory.
This function is called, when large changes to the state are applied, e.g. clean/reset.
Save the current current state in a file with a timestamp . At the same time remove old state logs from the log directory . This function is called when large changes to the state are applied e . g . clean / reset .
pub fn backup(&mut self) {
        self.save_to_file(true);
        if let Err(error) = self.rotate() {
            error!("Failed to rotate files: {:?}", error);
        };
    }
pub fn backup ( & mut self ) { self . save_to_file ( true ) ; if let Err ( error ) = self . rotate ( ) { error ! ( " " error ) ; } ; }
Save the current current state in a file with a timestamp.
Save the current current state in a file with a timestamp .
&mut self