Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- datum=$(date +%Y-%m-%d-%H-%M)
- clear
- echo "### Bereite ADB vor, dazu benötige ich das Passwort.. ###"
- adb kill-server
- gksu adb start-server -m "Damit es funktioniert, bitte das Passwort!" 2>/dev/null
- echo "### Lege Sicherungsordner an.. ###"
- mkdir -p ~/backup/spiele_${datum}
- cd ~/backup/spiele_${datum}
- for spiel in com.king.candycrushsaga com.king.candycrushsodasaga com.king.pyramidsolitairesaga
- do
- echo ; echo
- echo "### Sichere Spiel "$(echo ${spiel} | cut -d '.' -f 3) " ###"
- mkdir ${spiel}
- cd ${spiel}
- adb pull /mnt/sdcard/carbon/${spiel}/${spiel}.ab
- adb pull /mnt/sdcard/carbon/${spiel}/${spiel}.json
- cd ..
- done
- echo ; echo ; echo
- echo "### Alle Spiele sind beisammen, archiviere sie.. ###"
- cd ~/backup
- tar -cjf spiele_${datum}.tar.bz2 spiele_${datum}
- echo ; echo ; echo
- echo "### Lösche Ursprungsordner.. ###"
- rm -rf spiele_${datum}
- echo ; echo ; echo
- echo "### Ab zu Stuart! ###"
- bar spiele_${datum}.tar.bz2 /stuart/backup/Edith/
- echo ; echo ; echo
- echo "Du kannst das Fenster nun durch Druck von Enter schließen."
- read
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement