threeplanetssoftware / apple_cloud_notes_parser

Parser for Apple Notes data stored on the Cloud as seen on Apple handsets
MIT License
404 stars 26 forks source link

latest docker image yields "This is not a valid Apple Backup with Notes: /data" #106

Closed dmd closed 6 months ago

dmd commented 6 months ago

Latest docker image (340d...) yields "This is not a valid Apple Backup with Notes: /data".

Using the previous image works just fine.

This is my workflow:

IMAGE_NAME="ghcr.io/threeplanetssoftware/apple_cloud_notes_parser"
CONTAINER_NAME="apple_cloud_notes_parser"
COMMAND="--mac /data"
NOTES="/Users/$(whoami)/Library/Group Containers/group.com.apple.notes"
TMP_FOLDER="/tmp/.tmp_notes_input"

mkdir -p "$TMP_FOLDER"
cp -r "$NOTES"/* "$TMP_FOLDER"
docker run --rm \
  --name $CONTAINER_NAME \
  --volume "$TMP_FOLDER:/data:ro" \
  --volume "/Users/dmd/Dropbox/bk/AppleNotes:/app/output" \
  $IMAGE_NAME \
  $COMMAND

rm -rf "$TMP_FOLDER"
dmd commented 6 months ago

I think this is probably a dupe of #105

threeplanetssoftware commented 6 months ago

Seems likely. Does this give you anything?

ls /Users/$(whoami)/Library/Group Containers/group.com.apple.notes/NotesIndexer*

If so, I'll change how it identifies a Mac backup as being valid.

threeplanetssoftware commented 6 months ago

Try commit bfdd386d8e9702ae0c27cb87f0624f6f10bc8b6c to see if it works better.

threeplanetssoftware commented 6 months ago

(and please let me know if so, I will push v0.16.1)

dmd commented 6 months ago

Yes, that works.

threeplanetssoftware commented 6 months ago

In ~1 hour Docker should now have v0.16.1 available with this change.