Ergebnis 21 bis 28 von 28
-
Fühle mich heimisch
- 20.06.2012, 10:43
- #21
-
Fühle mich heimisch
- 20.06.2012, 19:55
- #22
Ich hab mir n bash-Script geschrieben. Läuft unter Ubuntu und ist sicherlich nicht der schönste Programmierstil, eher quick and dirty - aber es funktioniert, Schönheit war nicht mein Ziel.
Müsstest halt die Pfade anpassen.
Und das Android-SDK installieren. Aber frag nicht, wie das unter MacOS funktioniert. MacOS... sagen wir diplomatisch... nutze ich nicht.
Im Grunde geht's aber nur um das
[FONT=Courier New]adb backup -f galaxy-nexus-backup.bak -apk -shared -all[/FONT]
wenn du das auf der Konsole ausführst, müsste das Backup auf dem Nexus eigentlich starten und die entsprechende Datei (nach -f) angelegt werden. "-apk" nimmt die Apps mit, "-shared" die sdcard und "-all" die Einstellugen (WLANs, Klingelprofile, etc, pp.)
[FONT=Courier New]
#!/bin/bash
# defining variables
# get today like 03032012
date=$(date +"%d%m%Y")
# path to the adb binary
PathToADB="/home/scripts/android-sdk-linux/platform-tools"
# where the backups go to
BackupDestination="/home/backups/Galaxy Nexus"
# new folder for the new backup
mkdir "$BackupDestination/galaxy-nexus-backup-$date"
echo "*** Starting Galaxy Nexus backup"
echo "*** Running ADB backup..."
echo "please confirm backup on device!"
# backup the phone (what can be set like needed), here: including all apk, theoretically the sdcard (didn't work for me with Android <4.0.4), and all settings
$PathToADB/adb backup -f "$BackupDestination/galaxy-nexus-backup-$date/$date.bak" -apk -shared -all
echo "*** Zipping the backup-file"
# zipping doesn't do much, as adb compresses the file automatically, but files *could* be split or such.
tar cvzf "$BackupDestination/galaxy-nexus-backup-$date/$date.bak.tar.gz" "$BackupDestination/galaxy-nexus-backup-$date/$date.bak" --remove-files > /dev/null
echo "*** ADB Backup done"
sleep 1
echo "*** waiting some seconds for the Nexus to become ready for sdcard-backup. Hold on."
# new folder for the additional sdcard backup
# if we don't need an additional sdcard-backup, we can comment that out
# comment out from here_____
mkdir "$BackupDestination/galaxy-nexus-backup-$date/sdcard-$date"
sleep 30
echo "*** Backing up the sdcard"
# using adb pull to download everything on the sdcard - but we could define sepcific folders to backup rather than just pulling it all
# would be something like simple if-then-else. no need for me
$PathToADB/adb pull /sdcard/ "$BackupDestination/galaxy-nexus-backup-$date/sdcard-$date"
echo "*** Zipping the sdcard content"
# gunzipping all the stuff to keep space and inode consumption low
tar cvzf "$BackupDestination/galaxy-nexus-backup-$date/sdcard-backup-$date.tar.gz" -C "$BackupDestination/galaxy-nexus-backup-$date/sdcard-$date" . --remove-files > /dev/null
# until ______here
# done
echo "*** backup done ***"
exit 0[/FONT]
[FONT=Courier New]adb restore /path/to/backup.file[/FONT]
that's it.
Grüße
-
Fühle mich heimisch
- 28.06.2012, 11:07
- #23
uh...ok dann hmm... schau ich mal oder guck einfach das ich nen Windows pc finde der mir das mal macht
mich würde Jelly bean unglaublich interessieren
-
Fühle mich heimisch
- 28.06.2012, 11:26
- #24
Solange du nen Intel-basierten Mac hast, gibt's das Android SDK auch für MacOS:
https://developer.android.com/sdk/index.html
Also warum nicht direkt auf dem Mac machen? Habs nie gemacht, aber gelesen, dass das auf Windows durchaus problematischer ist, weil da die Treiberraffelei umständlich ist. Bei Unix-artigen "gehts halt einfach"
Grüße
-
Fühle mich heimisch
- 28.06.2012, 11:44
- #25
Ja gut na dann...
also geb ich in das Terminal
"adb backup -/users/xyz/desktop/sicherung galaxy-nexus-backup.bak -apk -shared -all "
ein und dann sollte das eine komplette Sicherung nach "/users/xyz/desktop/sicherung" ausführen?
edit : ich hab das sdk runtergeladen und hab jetzt nen Ordner voller weiterer Ordner. Wie installiere ich das denn?
-
Fühle mich heimisch
- 28.06.2012, 11:59
- #26
http://androidforums.com/samsung-gal...nexus-mac.html
und
http://wiki.cyanogenmod.com/wiki/How...d_SDK#Mac_OS_X
sollte deine Fragen beantworten
Grüße
-
Fühle mich heimisch
- 28.06.2012, 13:44
- #27
Hi, danke! Habe das sdk installiert und auch die platform tools. Wenn ich aber./adb devices eingebe wird nichts angezeigt? Muss ich das Gerät über nen USB 3 port anschließen?
-
Fühle mich heimisch
- 28.06.2012, 13:47
- #28
Nein, USB2.0 ist völlig ok.
Du musst aber auf dem Nexus unter "Einstellungen" - "{ } Entwickleroptionen" das "USB Debugging" aktivieren.
Grüße
Ähnliche Themen
-
Galaxy Nexus | Ice Cream Sandwich | Zahlreiche Apps mit Problemen | Übersicht
Von zipro im Forum Google Galaxy NexusAntworten: 41Letzter Beitrag: 15.02.2012, 15:54 -
Zwischenablage: Copy und Paste (Kopieren und Einfügen) nicht in allen Apps
Von veroweed im Forum HTC HD2 ProgrammeAntworten: 9Letzter Beitrag: 05.11.2010, 17:05 -
Programm zur sicherung von allen dateien
Von geheim5000 im Forum HTC Touch Pro 2Antworten: 7Letzter Beitrag: 25.10.2009, 12:50 -
Sicherung der Daten vom X1
Von John im Forum SE Xperia X1Antworten: 1Letzter Beitrag: 13.09.2009, 11:47
Pixel 10 Serie mit Problemen:...