Hi, @adil ,
Per my knowledge, we do not have an option to only backup the content database without stored documents. And it is not supported if you access and modify the database directly. If you are planning to test the upgrade process, you are always recommended to backup the content database and restore in the lab environment.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.