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?
1 Reply
bo0tzz
bo0tzz3y ago
The originals folder is where files initially land after upload, before later being moved into a date folder. For files that were uploaded a while ago, they may have never been moved, so they'd still be in originals. Those are the folders you want to upload, you can skip thumbs and encoded-videos Live photos should get properly linked even when uploading from cli

Did you find this page helpful?