summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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:
switch(cmd) {
case CMD_BACKUP:
printf("Starting backup...\n");
+
+ /* make sure backup device sub-directory exists */
+ gchar *devbackupdir = g_build_path(G_DIR_SEPARATOR_S, backup_directory, uuid, NULL);
+ g_mkdir(devbackupdir, 0755);
+ g_free(devbackupdir);
+
/* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
/* TODO: verify battery on AC enough battery remaining */