There are two primary things you need to backup:
- Your pictures
- Photoprism's database
All your pictures reside in your "Originals" directory. Including that one in your backup is essential to avoid data loss.
In regards to photoprism's database, the easiest way is to use the built-in
photoprism backup --help for detailed information on how to use it.
Please also see this discussion for more information.