What can I use to save/restore Safari's history? Is there a way to save/restore the browser history on Safari? I'm asking because I found a way to show the hidden Debug menu on the browser where there is an option Sync iCloud history. The thing is that I don't want rely only on iCloud to restore the browser history. Besides, I really don't know whether syncing iCloud's history would work like that, or rather would merge or override the history or some other particular kind of data in all devices.
Safari history is stored in an SQLite database located at 

~/Library/Safari/History.db


You can copy this file elsewhere to save it, then restore it by copying it over the top of the existing file (while Safari is quit).