BMG
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
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)"]]