Hello,
This support article makes it more clear. The process is super easy.
Back up the library in Photos on Mac - Apple Support
"Back up the library in Photos on Mac
Even if you use iCloud Photos, it’s important that you always back up your library locally using one of the following methods:
WARNING: If a Photos library is located on an external drive, don’t use Time Machine to store a backup on that external drive. The permissions for your Photos library may conflict with those for the Time Machine backup.
- Manually copy your library to an external storage device: Drag the Photos library (by default in the Pictures folder on your Mac) to your storage device to create a copy.
If you have more than one photo library, be sure to back them all up.
Important: If any of your image files are stored outside your photo library, those files (known as referenced files) aren’t backed up when you back up your library. Be sure to back up those files separately. To make it easier to back up all your image files at once, you can consolidate referenced files into your library. See Change where Photos stores your files."
I hope this helps.