How do I reupload photos from a previous installation using the CLI?

I accidentally deleted my pgdata volume, and need to restore my photos using the cli. However, in the actual upload directory, the format in which photos are stored in is a little confusing. There is a folder called originals, some labeled by year, thumbnails, and encoded videos.

What should I be using to reupload photos via cli? At first glance, I though I would just use the originals folder. However, for some users the originals folder is sparsely populated while the the yearly folders are full, and vice versa.

Also, when the files are uploaded using CLI do live photos show up properly as live photos? From my understanding, live photos are broken down into a video and photo, and linked together. When I reupload them using the CLI is this structure still maintained?
Was this page helpful?