hardlinks_mod module¶
Manage a list of hardlinks for a given backup; Also provides classes for hardlink restores.
- class hardlinks_mod.Restore_hardlinks(backup_id)[source]¶
Bases:
object
A class for dealing with restoration of hardlinks
- backup_id = None¶
- prior_file_for_hardlink(deviceno, inodeno, filename)[source]¶
If this isn’t a hardlinked file (in the backup), return None. If this is a hardlinked file, but it’s the first time we’ve encountered the inode, save the filename and return None. If this is a hardlinked file, and we’ve seen the inode number previously, return the filename to which we should hardlink.
- class hardlinks_mod.Restore_inode(inodeno, ideal_count)[source]¶
Bases:
object
Class to hold inode data
- class hardlinks_mod.Save_device(deviceno)[source]¶
Bases:
object
Class to hold data related to a particular “device” on save - in unix/linux filesystems, this means a filesystem
- expected_size = None¶