break_lock.py 584 B

12345678910111213141516171819202122232425262728
  1. import logging
  2. import borgmatic.borg.break_lock
  3. logger = logging.getLogger(__name__)
  4. def run_break_lock(
  5. repository,
  6. config,
  7. local_borg_version,
  8. break_lock_arguments,
  9. global_arguments,
  10. local_path,
  11. remote_path,
  12. ):
  13. '''
  14. Run the "break-lock" action for the given repository.
  15. '''
  16. logger.info('Breaking repository and cache locks')
  17. borgmatic.borg.break_lock.break_lock(
  18. repository['path'],
  19. config,
  20. local_borg_version,
  21. global_arguments,
  22. local_path=local_path,
  23. remote_path=remote_path,
  24. )