You can backup the database without files when you do a manual backup (not sure about auto)
If you have a lot of images, I’d recommend that you setup Discourse to store images on Amazon S3. You’ll likely better performance along with fault tolerance (if you want it) in the mix.