{"id":36794,"date":"2022-08-17T15:48:36","date_gmt":"2022-08-17T19:48:36","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36794"},"modified":"2022-08-17T15:48:44","modified_gmt":"2022-08-17T19:48:44","slug":"nightly-time-machine","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/08\/17\/nightly-time-machine\/","title":{"rendered":"Nightly Time Machine"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/JackWellborn\/Nightly-Time-Machine\">Jack Wellborn<\/a> (<a href=\"https:\/\/twitter.com\/JackWellborn\/status\/1556627458769682435\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/JackWellborn\/Nightly-Time-Machine\"><p>Nightly Time Machine is a collection of bash scripts that limits macOS&rsquo;s Time Machine to once per night by only mounting Time Machine disks just before backing up and then unmounting them when Time Machine is finished. Preventing Time Machine disks from automatically mounting when connected also ensures they can be safely disconnected throughout the day.<\/p><p>[&#8230;]<\/p><p>At its best, Time Machine is &ldquo;set it and forget it&rdquo; in that you should never really have to think about it until a backup is needed or a backup disk needs to be replaced. Time Machine by itself is only at its best on desktops. On laptops, where external drives are frequently disconnected, Time Machine becomes a hassle at best and a risk to data at worst. With <em>Nightly Time Machine<\/em>, Time Machine is &ldquo;set it and forget it&rdquo; on laptops.<\/p><\/blockquote><p>Earlier this year, I tried solving these problems using network Time Machine, but I gave up with that for my main Mac. I noticed that the Time Machine volume was mounted all off the time, and there was constant network traffic, seemingly because Spotlight was never able to catch up.<\/p>\n\n<p>For my laptop that mostly acts as a desktop, I actually want the opposite functionality. Frequent backups during the day are good, but I want it to be quiet at night.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/?p=36778\">Removing Unwanted APFS Time Machine Backups<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/07\/18\/invasive-spotlight-indexing\/\">Invasive Spotlight Indexing<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/02\/21\/network-time-machine-backups\/\">Network Time Machine Backups<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2017\/08\/31\/reliability-of-macos-sierra-scheduled-and-background-activities\/\">Reliability of macOS Sierra: Scheduled and Background Activities<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Jack Wellborn (tweet): Nightly Time Machine is a collection of bash scripts that limits macOS&rsquo;s Time Machine to once per night by only mounting Time Machine disks just before backing up and then unmounting them when Time Machine is finished. Preventing Time Machine disks from automatically mounting when connected also ensures they can be safely [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-08-17T19:48:45Z","apple_news_api_id":"44d35e8e-0468-42ec-a3bf-aa11ffdabb42","apple_news_api_modified_at":"2022-08-17T19:48:45Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/ARNNejgRoQuyjv6oR_9q7Qg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[500,30,2077,74,216],"class_list":["post-36794","post","type-post","status-publish","format-standard","hentry","category-technology","tag-launchd","tag-mac","tag-macos-12","tag-opensource","tag-timemachine"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=36794"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36794\/revisions"}],"predecessor-version":[{"id":36795,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36794\/revisions\/36795"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}