Nautilus (default file manager in Ubuntu) saves bookmarks/favorites in the following file in the home folder:
~/.gtk-bookmarks
or home/YOUR_USERNAME/.gtk-bookmarks
You might need to make hidden files (those that starts with a .) visible by pressing CTRL+H in Nautilus in order to find the file.
Just copy the file to another location to make a backup of it 🙂