File System rebuilder for Sony Xperia DBK backup file
ewft b33884c1e7 Update main.py for DBK | 6 years ago | |
---|---|---|
.idea | 6 years ago | |
README.md | 6 years ago | |
main.py | 6 years ago | |
template.xml | 6 years ago |
Sony Xperia backup file, with dbk extension, are in fact zip archive. But all files are stored in a same an unique "Content" folder, with as a filename a "Content-Id". And a FileSystm.xml file contains the folder hierarchy and the correspondance between real name and Content-Id.
This script reconstruct the filesystem, by recreating the folder hierarchy, renaming the file with their correct name and moving them at their location in the folder hierarchy.
Python 2.7
Open main.py
Setup Parameters
'''
top_root = "../result2/"
FileSystemXML = "../FileSystem.xml"
ContentFolder = "../Content"
DryRun = True '''
run script with
''' python2 main.py '''