{"id":1336,"date":"2022-05-31T21:12:48","date_gmt":"2022-06-01T03:12:48","guid":{"rendered":"https:\/\/www.schwie.com\/brad\/?p=1336"},"modified":"2025-03-27T09:08:54","modified_gmt":"2025-03-27T15:08:54","slug":"restoring-cloudtabs-db","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=1336","title":{"rendered":"Restoring CloudTabs.db"},"content":{"rendered":"<p>Read <a href=\"https:\/\/www.schwie.com\/brad\/?p=1574\">a more recent post<\/a> on this topic.<\/p>\n<p>I&#8217;m terrible about opening lots of tabs and then quitting Safari twice to lose them. Or do you?<\/p>\n<p>I&#8217;ve found if you have Time Machine running on your Mac, it&#8217;s possible to restore your lost tabs if you restore the Cloudtabs.db file, saved here:<\/p>\n<p>\/Users\/(your user folder)\/Library\/Containers\/com.apple.Safari\/Data\/Library\/Safari\/CloudTabs.db<br \/>\nor<br \/>\n~\/Library\/Containers\/com.apple.Safari\/Data\/Library\/Safari\/CloudTabs.db<br \/>\nor (updated 3-27-2025)<br \/>\n~\/Library\/Containers\/Safari\/Data\/Library\/Safari\/CloudTabs.db<\/p>\n<p>I&#8217;ve been able to restore the file such that Safari will launch with all your tabs in place before you lost them, but I seem to have forgotten how I did that. As a temporary workaround, you can open the CloudTabs.db file with &#8220;<a href=\"https:\/\/sqlitebrowser.org\">DB Browser for SQLite<\/a>&#8220;. After you double-click CloudTabs.db to open your lost tabs, click &#8220;Browse Data&#8221; to view your tab information.<\/p>\n<p>When I lose all my tabs in another month, I may try to figure out how to do a quicker restore that brings back Safari&#8217;s window and tabs in the same place they were, but for now you get this post. According to my notes though, all I had to do was <a href=\"https:\/\/discussions.apple.com\/thread\/8010896\">restore the history db files<\/a>, but I think it&#8217;s more complicated than that&#8230; According to this one you just have to <a href=\"https:\/\/discussions.apple.com\/thread\/8581485\">restore all 3 CloudTabs.db files<\/a>, presumably they mean CloudTabs.db, CloudTabs.db-shm, and CloudTabs.db-wal? <a href=\"https:\/\/www.reddit.com\/r\/osx\/comments\/89rias\/iphone_safari_tabs_into_text_list_via_icloud\/\">This discussion<\/a> is similar to the file paths inserted above.<\/p>\n<p>Will report more later when I next try this with my Time Machine backups at home.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Read a more recent post on this topic. I&#8217;m terrible about opening lots of tabs and then quitting Safari twice to lose them. Or do you? I&#8217;ve found if you have Time Machine running on your Mac, it&#8217;s possible to &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=1336\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1336","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1336"}],"version-history":[{"count":6,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions"}],"predecessor-version":[{"id":1898,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions\/1898"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}