Actually I don't need to backup the PHP files, as I'm the only one editiong them, and then they're always edited locally then upload on the server - hence my local PHP files are always up to date. Pictures, on the other hand, can be edited by anyone so I'd have to backup them separatly from the database.
Yea, that's what I said to do but not to take the wastful step of putting the images into the database.
There's no waste - MySQL is made to handle very large databases (dozens of G😎 and has no limit on blob sizes. I've 35 MB database with 20 MB of pictures, it's working like a charm. And I'm always sure that all the pictures listed in my database are actually there and can be generated whenever I need them. I wouldn't go as far as storing 10 MB files in there, but 100 KB pictures, that's smaller than many large text fields you can store sometimes.