瀏覽代碼

Add help for file extraction to README
Improve backup list stability

Rich Infante 6 年之前
父節點
當前提交
dd155adb0c
共有 3 個文件被更改,包括 256 次插入247 次删除
  1. 9 0
      Readme.md
  2. 244 244
      package-lock.json
  3. 3 3
      tools/reports/backups/list.js

+ 9 - 0
Readme.md

@@ -96,6 +96,15 @@ the `-o <path>` (`--output <path>`option specifies a folder to export reports to
 # Export wifi, calls, voicemail as CSV files to disk in a folder named "exported/"
 ibackuptool -b $UDID --report system.wifi,phone.calls,phone.voicemail -f csv -o exported
 ```
+
+## Extracting files
+the `--extract <path>` parameter paired with the backup.files report will extract all files in a backup, with filenames matching an optional filter (specified by `--filter <filter>`).
+
+```bash
+# Export all photos onto "~/Desktop/Photos"
+ibackuptool -b $UDID -r backup.files --extract ~/Desktop/Photos --filter DCIM
+```
+
 ## Running Tests
 first, install [tap](https://www.npmjs.com/package/tap)
 

File diff suppressed because it is too large
+ 244 - 244
package-lock.json


+ 3 - 3
tools/reports/backups/list.js

@@ -31,9 +31,9 @@ module.exports = {
     udid: el => el.id,
     encrypted: el => el.manifest ? (!!el.manifest.IsEncrypted) : false,
     date: el => el.status ? new Date(el.status.date).toLocaleString() : '',
-    deviceName: el => el.manifest ? el.manifest.Lockdown.DeviceName : 'Unknown Device',
-    serialNumber: el => el.manifest.Lockdown.SerialNumber,
-    iOSVersion: el => el.manifest ? el.manifest.Lockdown.ProductVersion : '?',
+    deviceName: el => el.manifest && el.manifest.Lockdown ? el.manifest.Lockdown.DeviceName : 'Unknown Device',
+    serialNumber: el => el.manifest && el.manifest.Lockdown ? el.manifest.Lockdown.SerialNumber : 'Unknown Serial #',
+    iOSVersion: el => el.manifest && el.manifest.Lockdown ? el.manifest.Lockdown.ProductVersion : '?',
     backupVersion: el => el.status ? el.status.version : '?'
   }
 }

Some files were not shown because too many files changed in this diff