Lines Matching defs:backup
132 " adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]\n"
135 " to \"backup.ab\" in the current directory.\n"
136 " (-apk|-noapk enable/disable backup of the .apks themselves\n"
138 " (-shared|-noshared enable/disable backup of the device's\n"
149 " adb restore <file> - restore device contents from the <file> backup archive\n"
599 static int backup(int argc, char** argv) {
602 const char* filename = strcpy(default_name, "./backup.ab");
622 /* bare "adb backup" or "adb backup -f filename" are not valid invocations */
633 snprintf(buf, sizeof(buf), "backup");
639 D("backup. filename=%s buf=%s\n", filename, buf);
642 fprintf(stderr, "adb: unable to connect for backup\n");
669 fprintf(stderr, "adb: unable to connect for backup\n");
1240 if (!strcmp(argv[0], "backup")) {
1241 return backup(argc, argv);