summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup4.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicebackup4.c')
-rw-r--r--tools/idevicebackup4.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index 1944a7a..c4ee847 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -1474,6 +1474,12 @@ checkpoint:
1474 switch(cmd) { 1474 switch(cmd) {
1475 case CMD_BACKUP: 1475 case CMD_BACKUP:
1476 printf("Starting backup...\n"); 1476 printf("Starting backup...\n");
1477
1478 /* make sure backup device sub-directory exists */
1479 gchar *devbackupdir = g_build_path(G_DIR_SEPARATOR_S, backup_directory, uuid, NULL);
1480 g_mkdir(devbackupdir, 0755);
1481 g_free(devbackupdir);
1482
1477 /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ 1483 /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
1478 /* TODO: verify battery on AC enough battery remaining */ 1484 /* TODO: verify battery on AC enough battery remaining */
1479 1485