bmgr
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
bmgr
은 Android 기기 버전 2.2(API 수준 8) 이상에서 백업 관리자와 상호작용하기 위해 사용할 수 있는 셸 도구입니다. 이 도구는 백업 및 복원 작업을 시작하는 명령어를 제공하므로, 애플리케이션의 백업 기능을 테스트하기 위해 반복적으로 데이터를 완전 삭제하거나 유사한 침입 단계를 실행할 필요가 없습니다. bmgr
도구는 자동 백업과 키-값 백업을 모두 지원합니다.
참고: bmgr restore
는 암호화된 백업에는 작동하지 않습니다.
adb 셸을 통해 기기에서 bmgr
명령어를 실행한 다음 logcat을 사용하여 명령어의 출력을 모니터링합니다. 사용 가능한 명령어의 목록과 설명을 보려면 인수 없이 bmgr
도구를 실행합니다. 백업 및 복원 작업의 트리거에 관한 자세한 내용은 백업 및 복원 테스트를 참조하세요.
애플리케이션에서 백업 지원을 추가하는 방법에 관한 자세한 내용은 데이터 백업을 참조하세요.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# bmgr\n\n`bmgr` is a shell tool you can use to interact with the Backup Manager on Android\ndevices version 2.2 (API Level 8) or higher. The tool provides commands to initiate backup and\nrestore operations so that you don't need to repeatedly wipe data or take similar intrusive steps\nin order to test your application's backup functionality. The `bmgr` tool supports both\n[Auto Backup](/guide/topics/data/autobackup) and\n[Key/Value Backup](/guide/topics/data/keyvaluebackup).\n\nNote: `bmgr restore` does not work for\n[encrypted backups](/guide/topics/data/autobackup#define-device-conditions).\n\nYou run `bmgr` commands on a device via\n[adb shell](/studio/command-line/adb) and then monitor the output of the commands\nwith [logcat](/studio/command-line/logcat). For a list and description of\navailable commands, run the `bmgr` tool with no arguments. For information on\ntriggering backup and restore operations, see\n[Testing Backup and Restore](/guide/topics/data/testingbackup).\n\nFor information about adding support for backup in your application, read [Data Backup](/guide/topics/data/backup)"]]