# read configuration from checkpoint file
configuration = nlread('original_checkpoint_file.nc')[0]
# Define the check point handler
checkpoint_handler = CheckpointHandler('/home/checkpoint.nc', 20*Minute)
# Clone the calculator method, with a new checkpoint handler
calculator = configuration.calculator()(checkpoint_handler=checkpoint_handler)
configuration.setCalculator(calculator, initial_state=configuration)
configuration.update(force_restart=True)
nlsave('output.nc', configuration)