util.backup
Simple recursive backup/restore of filesystem paths, preserving file metadata where possible.
Module Contents
- util.backup.backup(path)
- util.backup.restore(path)
- util.backup.backed_up(path)
Context manager for automatic backup/restore of a given path, use as:
- with backed_up(‘/some/path’):
# do destructive stuff to it