bmgr
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
bmgr
เป็นเครื่องมือเชลล์ที่คุณใช้เพื่อโต้ตอบกับเครื่องมือจัดการการสำรองข้อมูลในอุปกรณ์ Android เวอร์ชัน 2.2 (API ระดับ 8) ขึ้นไปได้
เครื่องมือนี้มีคำสั่งในการเริ่มการสำรองและคืนค่าข้อมูล คุณจึงไม่จำเป็นต้องล้างข้อมูลซ้ำๆ หรือทำตามขั้นตอนที่คล้ายกันซึ่งเป็นการรบกวนเพื่อทดสอบฟังก์ชันการสำรองข้อมูลของแอปพลิเคชัน เครื่องมือ bmgr
รองรับทั้ง
การสำรองข้อมูลอัตโนมัติและ
การสำรองข้อมูลคีย์/ค่า
หมายเหตุ: bmgr restore
ใช้ไม่ได้กับ
ข้อมูลสำรองที่เข้ารหัส
คุณเรียกใช้คำสั่ง bmgr
ในอุปกรณ์ผ่าน
adb shell แล้วตรวจสอบเอาต์พุตของคำสั่ง
ด้วย logcat หากต้องการดูรายการและคำอธิบาย
คำสั่งที่ใช้ได้ ให้เรียกใช้เครื่องมือ bmgr
โดยไม่มีอาร์กิวเมนต์ ดูข้อมูลเกี่ยวกับการทริกเกอร์การดำเนินการสำรองและกู้คืนได้ที่การทดสอบการสำรองและกู้คืน
ดูข้อมูลเกี่ยวกับการเพิ่มการรองรับการสำรองข้อมูลในแอปพลิเคชันได้ที่การสำรองข้อมูล
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ 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)"]]