Restore Backup did not backup all data

I restored my backup but the things did not go well, first the email are not sending from cronjobs anyomre but sending through erpnext. Also it did not properly backup and some of my data is missing that was saved.
Is that a bug?

To backup data, you have to use
bench backup --with-files
If you just used bench backup then attached files for the document won’t backup.

what are attached files are exactly? and yes I did it with it

for example in my leave type the options I had checked before backup are now not checked, many other problems like this. It was working properly then obviously it was saved in database, but after restore how come they changed.