通過從備份中排除這些文件夾來節省Time Machine驅動器上的空間

Are you getting notifications about a full Time Machine drive? Do you?feel like your backups are taking too long? A bigger, faster hard drive might be?the best solution, but you can also help by excluding particular folders from your backups.

您是否收到有關Time Machine完整驅動器的通知? 您是否覺得備份時間太長? 更大,更快的硬盤驅動器可能是最好的解決方案,但是您也可以通過從備份中排除特定文件夾來提供幫助。

We’ve shown you how to back up and restore files with Time Machine, including how to exclude particular folders from being backed up. To exclude a folder, just head to System Preferences > Time Machine > Options.

我們向您展示了如何使用Time Machine備份和還原文件,包括如何從備份中排除特定文件夾。 要排除文件夾,只需轉到系統偏好設置> Time Machine>選項。

Some more options will slide down, giving you the ability to exclude particular folders from your backups. But which folders can be safely disabled? And are any disabled by the system already? Let’s take a look.

其他一些選項將向下滑動,使您能夠從備份中排除特定文件夾。 但是可以安全地禁用哪些文件夾? 系統已經禁用了嗎? 讓我們來看看。

默認情況下,Time Machine排除什么? (What Does Time Machine Exclude By Default?)

Time Machine already excludes a bunch of things you don’t need backed up: your Trash, caches, and indexes. And?you know how you can use Time Machine even if your drive isn’t plugged in? The local backups that make that possible are also not backed up, as that would be redundant. So?you don’t need to worry about excluding system-level things like logs and caches—Time Machine already has you covered.

Time Machine已經排除了許多不需要備份的內容:廢紙,、緩存和索引。 而且您知道即使未插入驅動器也可以使用Time Machine? 也不會備份使備份成為可能的本地備份,因為這將是多余的。 因此,您不必擔心排除諸如日志和緩存之類的系統級內容-Time Machine已經為您服務。

If just knowing that system-level stuff is already excluded is enough for you, go ahead and skip the rest of this section. But if you’re interested in seeing the complete list of folders excluded by default (or just want to prove to yourself that something is excluded), here’s how to do it.

如果僅知道已經排除了系統級的內容就足夠了,請繼續并跳過本節的其余部分。 但是,如果您希望查看默認情況下排除的文件夾的完整列表(或者只是想向自己證明某些東西被排除在外),請按照以下方法操作。

A file named “StdExclusions.plist” outlines everything that Time Machine excludes. You can find that file in the following location:

名為“ StdExclusions.plist”的文件概述了Time Machine排除的所有內容。 您可以在以下位置找到該文件:

/System/Library/CoreServices/backupd.bundle/Contents/Resources/

You can quickly open that file by running the following command in the Terminal (which you can find at Applications > Utilities > Terminal):?

您可以通過在終端中運行以下命令來快速打開該文件(可以在“應用程序”>“實用程序”>“終端”中找到):?

/System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist

The list is too long to include here, so you should just check it out yourself.

該列表太長,無法包含在此處,因此您應該自己檢查一下。

Individual programs can also mark particular files to not be backed up. Typically, this includes caches and other temporary files. You can find a list of these exempt files by running the following command in the Terminal:

各個程序還可以將特定文件標記為不備份。 通常,這包括緩存和其他臨時文件。 您可以通過在終端中運行以下命令來找到這些免除文件的列表:

sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"

To summarize, though, you don’t need to worry about stopping Time Machine from?backing up caches or your Trash folder, because it already knows not to. And a big thanks to Brant Bobby on Stack Exchange for pointing out the commands?that prove this.

總之,盡管如此,您不必擔心停止Time Machine備份緩存或“垃圾箱”文件夾,因為它已經知道不這樣做。 非常感謝Stack Exchange上的Brant Bobby指出了證明這一點的命令。

我應該考慮排除哪些其他項目? (What Other Items Should I Consider Excluding?)

Now that you’ve seen what Time Machine excludes by default, let’s take a look at some of the other items you might consider excluding to free up some space.

既然您已經了解了Time Machine默認排除的內容,讓我們看一下您可能考慮排除的其他一些項目,以釋放一些空間。

您的Dropbox文件夾或任何已經同步的文件夾 (Your Dropbox Folder, or Any Folder You’re Already Syncing)

If you’re using?Dropbox, OneDrive, Google Drive, or any other syncing service, you already have those files stored in at least two locations—on your local drive and in the cloud. If you’re syncing files to other devices, as well, then you have those files stored in other locations as well.

如果您使用的是Dropbox,OneDrive,Google Drive或任何其他同步服務,則這些文件已經存儲在至少兩個位置(本地驅動器和云中)。 如果還要將文件同步到其他設備,那么這些文件也將存儲在其他位置。

Just be careful. Most cloud services offer a grace period to recover deleted files. Dropbox, for example, gives you 30 days, and keeps older versions of the files it has—just like a backup. But if?your cloud service does not provide this feature, you probably don’t want to exclude those files from your Time Machine backup, since you may not be fully covered if you accidentally delete an important file.?Keeping that caveat in mind, though, you can probably?leave such folders out of your Time Machine backups.

請注意。 大多數云服務都提供寬限期來恢復已刪除的文件。 例如,Dropbox會給您30天的時間,并保留其擁有的舊版本文件-就像備份一樣。 但是,如果你的云服務提供此功能,你可能不希望從您的Time Machine備份排除這些文件,因為你可能無法完全覆蓋,如果你不小心刪除了某個重要文件。 不過,請記住這一點,您可以將此類文件夾排除在Time Machine備份之外。

您的虛擬機 (Your Virtual Machines)

If you’ve created virtual machines to use Windows or Linux applications on your Mac, it’s probably a good idea to exclude those from your backup. Each virtual hard drive is a single file, meaning every time you use your virtual machine, a 20 GB+ file needs to be re-backed up. This is less of a problem if you use Parallels, which is built with this in mind, but other virtual machines can struggle with it.

如果已創建虛擬機以在Mac上使用Windows或Linux應用程序,則最好將這些虛擬機從備份中排除。 每個虛擬硬盤驅動器都是一個文件,這意味著每次使用虛擬機時,都需要重新備份20 GB以上的文件。 如果您使用了Parallels ,那么這個問題就更少了, Parallels就是為此而構建的,但是其他虛擬機可能會為此而苦苦掙扎。

We recommend doing a one-time backup of your virtual machines to some other hard drive and excluding them from your Time Machine backups.

我們建議一次性將虛擬機備份到其他硬盤,并將其從Time Machine備份中排除。

您的Steam庫和其他游戲 (Your Steam Library, and Other Games)

If you play a lot of Steam games on your Mac, you probably don’t need to?back them up. After all, getting your games back is as easy as opening Steam and re-downloading them.?

如果您在Mac上玩了很多Steam游戲,則可能不需要備份它們。 畢竟,恢復游戲就像打開Steam并重新下載一樣容易。?

To find where your Steam games are located, you’ll need to know how to access the hidden Library folder on your Mac. You can find the Steam settings folder at the following location

要查找Steam游戲的位置,您需要知道如何訪問Mac上隱藏的Library文件夾。 您可以在以下位置找到Steam設置文件夾

~/Library/Application Support/Steam

The games themselves are stored in the steamapps folder.?Exclude that folder and you’ll save a bunch of storage space without really losing anything that you can’t get back quickly.?Your game save files are?saved elsewhere in the Library folder, so you won’t need to worry about losing them by excluding the steamapps folder.

游戲本身存儲在steamapps文件夾。 排除該文件夾,您將節省大量存儲空間,而不會真正丟失您無法快速取回的任何內容。 您的游戲保存文件保存在“庫”文件夾中的其他位置,因此您無需擔心會由于排除steamapps文件夾而丟失它們。

And this advice doesn’t apply just to Steam games, either. Games in general tend to be very large, and are easy to re-download should you?need to—no reason to waste backup space on them.

這個建議也不僅僅適用于Steam游戲。 通常,游戲通常非常大,并且在需要時易于重新下載-沒有理由浪費游戲的備份空間。

We recommend putting all of your games in a separate folder, and then excluding that folder from your Time Machine backups.

我們建議將所有游戲都放在單獨的文件夾中,然后從Time Machine備份中排除該文件夾。

您可以輕松取回的大型應用程序 (Large Applications You Can Easily Get Back)

If you’re still running out of space, you might want to apply the same logic used for games to other large applications. Head to your Applications folder and look for large programs that you could easily reinstall. Things like Microsoft Office and Adobe Creative Suite are easy to re-download later, and constant updates mean you’re probably backing up new copies of these applications with some frequency. If you find applications that take up a lot of space on your Mac, consider excluding them from your backups.

如果仍然沒有足夠的空間,則可能要將與游戲相同的邏輯應用于其他大型應用程序。 轉到“應用程序”文件夾,然后查找可以輕松重新安裝的大型程序。 諸如Microsoft Office和Adobe Creative Suite之類的東西以后很容易重新下載,并且不斷的更新意味著您可能會以某種頻率備份這些應用程序的新副本。 如果您發現Mac上占用大量空間的應用程序,請考慮將它們從備份中排除。

您可能不需要備份的大文件 (Large Files That You Might Not Need Backed Up)

We’ve shown you how to find your largest files?in macOS. Excluding those files might be the simplest way to free up a bit of space on your Time Machine drive. In particular, look for large files you wouldn’t miss or that are easily replaceable. For example, movies?that you could re-download are prime candidates for exclusion. If you find multiple such files, stick them in their own folder and then exclude that folder from your backup.

我們已經向您展示了如何在macOS中找到最大的文件。 排除這些文件可能是釋放Time Machine驅動器上一點空間的最簡單方法。 特別是,尋找不會丟失或易于替換的大文件。 例如,您可以重新下載的電影是排除的主要候選對象。 如果找到多個此類文件,請將它們粘貼在它們自己的文件夾中,然后從備份中排除該文件夾。

您的下載文件夾 (Your Downloads Folder)

If you’re like me, your Downloads folder is a place full of files that you look at briefly before deleting or filing somewhere else. If you want to reduce the size of your regular backups, excluding the Downloads folder is probably a good move—though depending on what you store there, the savings probably aren’t going to be huge. If you have downloads that you want to keep around, our advice is to store those somewhere other than your Downloads folder and then just exclude your Downloads folder.

如果您像我一樣,則“下載”文件夾中會放滿一些文件,您可以在刪除或歸檔其他位置之前先對其進行簡短查看。 如果您想減少常規備份的大小,可以將“下載”文件夾排除在外是個不錯的選擇-盡管取決于您在其中存儲的內容,節省的空間可能不會很大。 如果您有想要保留的下載內容,我們的建議是將這些內容存儲在“下載”文件夾之外的其他位置,然后僅排除“下載”文件夾。

極限方法:排除所有系統文件和應用程序 (The Extreme Approach: Exclude All of Your System Files and Applications)

If you’re still running out of space—even after making all the exclusions you feel comfortable with—you might need a bigger hard drive. But you do have one additional (and somewhat extreme) option: excluding all System Files?from your backup. To do this, open the Finder and select your computer under the “Devices” category. From there browse to your primary hard drive, then to the “System” folder.

如果您仍然沒有足夠的空間(即使在進行了所有排除之后仍然感到滿意),則可能需要更大的硬盤驅動器。 但是,您確實有一個附加的(并且有些極端)選項:從備份中排除所有系統文件。 為此,請打開Finder,然后在“設備”類別下選擇您的計算機。 從那里瀏覽到您的主硬盤驅動器,然后瀏覽到“系統”文件夾。

Drag this folder to your list of Time Machine exclusions, and you’ll be asked if you’d like to exclude all of your System Files.

將此文件夾拖到Time Machine排除項列表中,系統會詢問您是否要排除所有系統文件。

Doing this means you can’t restore your complete installation from Time Machine. If your hard drive fails, you’ll have to re-install the OS. If you’re willing to put up with that, excluding your system files is another way to save a pretty good amount of space on your backup drive.

這樣做意味著您無法從Time Machine恢復完整安裝。 如果硬盤驅動器出現故障,則必須重新安裝操作系統。 如果您愿意這樣做,則排除系統文件是在備份驅動器上節省大量空間的另一種方法。



At the end of the day, it’s your irreplaceable files—photos, videos, documents—that you want to save more than anything else. Everything else can be re-downloaded and re-installed. The easiest recommendation is to just buy a bigger hard drive that lets you back up everything. If you can’t do this, though, excluding certain items from your backup could give you a little more space for the things that matter most.

歸根結底,要保存的就是您不可替代的文件(照片,視頻,文檔)。 其他所有內容都可以重新下載并重新安裝。 最簡單的建議是購買更大的硬盤驅動器,讓您備份所有內容。 但是,如果您無法執行此操作,則從備份中排除某些項目可能會給您更多的空間來處理最重要的事情。

翻譯自: https://www.howtogeek.com/294600/save-space-on-your-time-machine-drive-by-excluding-these-folders-from-backups/

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/280827.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280827.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280827.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

c#調用觸滑輸入法實現觸摸屏鍵盤功能

背景最近在做一個項目,用戶端是觸摸屏,涉及到一些表單數據的操作,因為是沒有外接的鼠標鍵盤,所以想著當用戶在操作表單的時候,能夠把軟件鍵盤輸入法給調出來使用。什么是觸滑輸入法觸滑輸入法Swype,是針對觸…

Teradata天睿公司推出適用各種部署環境的全球最強分析數據庫

Teradata天睿公司(Teradata Corporation,紐交所:TDC)推出Teradata Everywhere?,成為業內首家在多種公有云、托管云和本地部署環境下部署全球最強海量并行處理(MPP)分析數據庫的廠商。這些部署環…

[轉載]C/C++框架和庫

C/C框架和庫 裝載自:http://blog.csdn.net/xiaoxiaoyeyaya/article/details/42541419值得學習的C語言開源項目 Webbench Webbench是一個在linux下使用的非常簡單的網站壓測工具。它使用fork()模擬多個客戶端同時訪問我們設定的URL,測試網站在壓力下工作的性能&#…

如何使用智能鈴聲避免在Android中令人尷尬的大聲鈴聲

Choosing a ringtone volume can be hard – there is no one setting that is right for all environments. What works perfectly at home may be too quiet for when you’re on the train, but too loud for the office. Intelligent Ringer can be used to adjust ringto…

為什么要把類設置成密封?

前幾天筆者提交了關于FasterKvCache的性能優化代碼,其中有一個點就是我把一些后續不需要繼承的類設置為了sealed密封類,然后就有小伙伴在問,為啥這個地方需要設置成sealed?提交的代碼如下所示:一般業務開發的同學可能接…

powershell 常用命令筆記

常用集合,方便后續復制粘貼 # 判斷文件在不在 # 輸出文件 IF(!(test-path $filePath)) {$result|Out-File $filePath }# 讀取txt $result(Get-Content $filePath -TotalCount 1).Trim() $result# 刪除文件 remove-item "C:\wistron\Datasource\spiderPort.txt…

Linux 性能監控 : CPU 、Memory 、 IO 、Network

一、CPU 1.良好狀態指標 CPU利用率&#xff1a;User Time < 70%&#xff0c;System Time < 35%&#xff0c;User Time System Time < 70% 上下文切換&#xff1a;與CPU利用率相關聯&#xff0c;如果CPU利用率狀態良好&#xff0c;大量的上下文切換也是可以接受的 可…

Java 打飛機(小游戲)[版權非本人 本人制作收藏整理]

今天在網絡上 看到一個純java的小游戲 代碼copy到 myeclipse中 居然效果還不錯 這是一些效果圖 當然了 圖片是我自己找的 有心興趣的朋友可以做的好看一點 具體的代碼 都放在自己的文件里去了 那么可以去下載 https://i.cnblogs.com/Files.aspx 轉載于:https://www.cnblogs…

Cygwin使用指南

1 引言cygwin是一個在windows平臺上運行的unix模擬環境&#xff0c;是cygnus solutions公司開發的自由軟件&#xff08;該公司開發了很多好東西&#xff0c;著名的還有eCos&#xff0c;不過現已被Redhat收購&#xff09;。它對于學習unix/linux操作環境&#xff0c;或者從unix到…

nest 架構_當有人打來您的Nest Hello時,如何讓Google Home通知您

nest 架構The Nest Hello can alert you on your phone whenever someone rings your doorbell, but if you have a Google Home, you can also have Google Assistant audibly announce that someone is at the door. 無論何時有人按下門鈴&#xff0c; Nest Hello都會在電話上…

如何序列化派生類

前言假設有一個 Person 抽象基類&#xff0c;其中包含 Student 和 Teacher 派生類&#xff1a;public class Person {public string Name { get; set; } }public class Student : Person {public int Score { get; set; } }public class Teacher : Person {public string Title…

OPC Client “failed to execute OPCENUM” 解決方法

進入cmd重新執行 OpcEnum.exe /regserver 即可。

django07: 模板語言(舊筆記)

詳見&#xff1a;https://www.cnblogs.com/liwenzhou/p/7931828.html#autoid-2-3-6 包含&#xff1a; 模板 塊 組件 靜態文件

block,inline和inline-block概念和區別

block&#xff1a;block-level elements (塊級元素) &#xff0c;inline&#xff1a; inline elements (內聯元素)。block元素通常被現實為獨立的一塊&#xff0c;會單獨換一行&#xff1b;inline元素則前后不會產生換行&#xff0c;一系列inline元素都在一行內顯示&#xff0c…

Hadoop3.0 WordCount測試一直Accept 狀態,Nodes of the cluster 頁面node列表個數為0

起因是我運行wordcount測試一直卡主&#xff0c;不能執行&#xff0c;一直處于 Accept 狀態&#xff0c;等待被執行&#xff0c;剛開始是各種配置yarn參數&#xff0c;以及host配置&#xff0c;后來發現還是不行 hadoop 集群安裝完成后&#xff0c;在50070的 HDFS 管理后臺能看…

nexus 手動增加_如何使用Google的工廠圖像手動升級Nexus設備

nexus 手動增加Google’s Nexus devices are supposed to receive timely updates, but the staggered rollout means it can take weeks for devices to receive over-the-air (OTA) updates. Luckily, there’s a faster (and geekier) way to install the latest version of…

教你創建Google網站地圖Sitemap.xml(轉)

http://teachmyself.blog.163.com/blog/static/18881422920119895248288/ Sitemap.xml是 google搞出來的&#xff0c;也就是網站地圖&#xff0c;不過這個網站地圖是用xml寫的&#xff0c;而且要按google的標準來寫&#xff0c;并且要將寫出來的這個文件 sitemap.xml上傳到自己…

Oracle存儲過程語法

創建基本的存儲過程 1 CREATE OR REPLACE PROCEDURE MyProName IS 2 BEGIN 3 NULL; 4 END; 行1:CREATE OR REPLACE PROCEDURE 是一個SQL語句通知Oracle數據庫去創建一個叫做skeleton存儲過程, 如果存在就覆蓋它; 行2:IS關鍵詞表明后面將跟隨一個PL/SQL體。 行3:BEGIN關鍵詞表…

WPF-16 圖形處理

我們這節主要介紹WPF常用畫圖標簽&#xff0c;由于WPF圖形處理設計大量篇幅 ,我們在這里拋磚引玉&#xff0c;具體更多的學習資料鏈接https://github.com/microsoft/WPF-Samples/tree/master/Graphics 該鏈接中微軟提供了大量的學習Demo&#xff0c;WPF圖形處理最大的區別在于…

powershell 文件/文件夾操作

新建文件夾 New-Item -ItemType Directory -Force -Path $TargetPath復制文件夾到另外文件夾 Copy-Item <源文件夾> <新文件夾> -recurse -force 復制文件&#xff08;與修改文件名&#xff09; // 達到復制文件到新文件夾&#xff0c;及修改文件名效果 copy-…