Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- . /tmp/backuptool.functions
- list_files() {
- cat <<EOF
- app/Cerberus.apk
- priv-app/Cerberus.apk
- etc/cerberus_conf.xml
- EOF
- }
- case "$1" in
- backup)
- list_files | while read FILE DUMMY; do
- backup_file $S/"$FILE"
- done
- ;;
- restore)
- list_files | while read FILE REPLACEMENT; do
- R=""
- [ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
- [ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
- done
- ;;
- pre-backup)
- # Stub
- ;;
- post-backup)
- # Stub
- ;;
- pre-restore)
- # Stub
- ;;
- post-restore)
- # Stub
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment