summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicebackup.c')
-rw-r--r--tools/idevicebackup.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index d6380d0..cacacc4 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -872,11 +872,22 @@ int main(int argc, char *argv[])
872 872
873 break; 873 break;
874 case CMD_RESTORE: 874 case CMD_RESTORE:
875 printf("Restoring backup is NOT IMPLEMENTED.\n"); 875 /* TODO: verify battery on AC enough battery remaining */
876 /* verify battery on AC enough battery remaining */ 876 /* verify if Status.plist says we read from an successful backup */
877 /* now make sure backup integrity is ok! verify all files */
878 /* loop over Files entries in Manifest data plist */
879 /* make sure both .mddata/.mdinfo files are available for each entry */
877 /* request restore from device with manifest (BackupMessageRestoreMigrate) */ 880 /* request restore from device with manifest (BackupMessageRestoreMigrate) */
878 /* read mddata/mdinfo files and send to devices using DLSendFile */ 881 /* loop over Files entries in Manifest data plist */
879 /* signal restore finished message to device */ 882 /* read mddata/mdinfo files and send to device using DLSendFile */
883 /* if all hunks of a file are sent, device must send ack */
884 /* observe notification_proxy id com.apple.mobile.application_installed */
885 /* loop over Applications entries in Manifest data plist */
886 /* send AppInfo entries */
887 /* receive com.apple.mobile.application_installed notification */
888 /* receive BackupMessageRestoreApplicationReceived from device */
889 /* signal restore finished message to device; BackupMessageRestoreComplete */
890 /* close down notification_proxy connection */
880 /* close down lockdown connection as it is no longer needed */ 891 /* close down lockdown connection as it is no longer needed */
881 lockdownd_client_free(client); 892 lockdownd_client_free(client);
882 client = NULL; 893 client = NULL;