

I think Firefox Sync already restores your profile including add-ons, if you log into Firefox. Of course you may not want that for privacy reasons. In that case, I believe there is a way to self host a sync server, but I will have to go look for the repo for it.
Nothing wrong with that, and self hosting can get complex. My recommendation then is to back up the files in your Firefox profile the old fashioned way.