Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there are only two snapshots, the first one is downloaded twice #66

Open
al-broco opened this issue Sep 28, 2015 · 1 comment
Open

Comments

@al-broco
Copy link
Contributor

If there are only two snapshots, the first one is downloaded twice.

Example: I ran python iloot.py --item-types notes --output output <account> <pwd> and got the following output:

Working with ... : ...
Output directory : output
Available Devices:  1
===[ 0 ]===
    UDID:  77......................................
    Device:  iPhone 5s
    Size:  8G
    LastUpdate:  2015-09-21 19:02:40
Downloading backup 77...................................... to output/77......................................
Got OTA Keybag
Available Snapshots: 2
Listing snapshot 1...
    Shifting offset:  5000
    Shifting offset:  10000
Files in snapshot 6581
Downloading 4 files due to filter
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Preferences/com.apple.mobilenotes.plist
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Preferences/com.apple.mobilenotes.Notes.NotesDataCollector.plist
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Notes/notes.sqlite
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Notes/notes.idx
Listing snapshot 1...
    Shifting offset:  5000
    Shifting offset:  10000
Files in snapshot 6581
Downloading 4 files due to filter
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Preferences/com.apple.mobilenotes.plist
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Preferences/com.apple.mobilenotes.Notes.NotesDataCollector.plist
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Notes/notes.sqlite
    HomeDomain  output/77....................................../snapshot_1/HomeDomain/Library/Notes/notes.idx
Listing snapshot 2...
    Shifting offset:  5000
Files in snapshot 247
Downloading 3 files due to filter
    HomeDomain  output/77....................................../snapshot_2/HomeDomain/Library/Preferences/com.apple.mobilenotes.plist
    HomeDomain  output/77....................................../snapshot_2/HomeDomain/Library/Notes/notes.sqlite
    HomeDomain  output/77....................................../snapshot_2/HomeDomain/Library/Notes/notes.idx

Note that snapshot 1 is downloaded twice.

@al-broco
Copy link
Contributor Author

Created a pull request for a simple fix: #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant