通过从备份中排除这些文件夹来节省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.mzph.cn/news/280827.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

c#调用触滑输入法实现触摸屏键盘功能

背景最近在做一个项目,用户端是触摸屏,涉及到一些表单数据的操作,因为是没有外接的鼠标键盘,所以想着当用户在操作表单的时候,能够把软件键盘输入法给调出来使用。什么是触滑输入法触滑输入法Swype,是针对触…

Teradata天睿公司推出适用各种部署环境的全球最强分析数据库

Teradata天睿公司(Teradata Corporation,纽交所:TDC)推出Teradata Everywhere™,成为业内首家在多种公有云、托管云和本地部署环境下部署全球最强海量并行处理(MPP)分析数据库的厂商。这些部署环…

如何使用智能铃声避免在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?提交的代码如下所示:一般业务开发的同学可能接…

Java 打飞机(小游戏)[版权非本人 本人制作收藏整理]

今天在网络上 看到一个纯java的小游戏 代码copy到 myeclipse中 居然效果还不错 这是一些效果图 当然了 图片是我自己找的 有心兴趣的朋友可以做的好看一点 具体的代码 都放在自己的文件里去了 那么可以去下载 https://i.cnblogs.com/Files.aspx 转载于:https://www.cnblogs…

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. 无论何时有人按下门铃, Nest Hello都会在电话上…

如何序列化派生类

前言假设有一个 Person 抽象基类,其中包含 Student 和 Teacher 派生类:public class Person {public string Name { get; set; } }public class Student : Person {public int Score { get; set; } }public class Teacher : Person {public string Title…

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…

WPF-16 图形处理

我们这节主要介绍WPF常用画图标签,由于WPF图形处理设计大量篇幅 ,我们在这里抛砖引玉,具体更多的学习资料链接https://github.com/microsoft/WPF-Samples/tree/master/Graphics 该链接中微软提供了大量的学习Demo,WPF图形处理最大的区别在于…

纯CSS制作各种各样的网页图标(三角形、暂停按钮、下载箭头、加号等)

三角形 <div class"box"></div> <style>.box{ width: 0;height: 0;border-top: 50px solid transparent;border-bottom: 50px solid transparent;border-left: 50px solid transparent;border-right: 50px solid red; } </style> 平行四边形…

您的MyFitnessPal帐户几乎肯定已被黑客入侵,请立即更改密码

If you’re one of the millions of the 150 million MyFitnessPal users, bad news: hackers have your email address, your user name, and your hashed password. 如果您是1.5亿MyFitnessPal用户中的数百万用户之一&#xff0c;那么这是个坏消息&#xff1a;黑客拥有您的电…

ios 启用 证书_如何在iOS 10中启用就寝提醒,轻柔的唤醒和睡眠跟踪

ios 启用 证书If you have trouble regularly getting a full night’s sleep, the new Bedtime feature in iOS 10 might just help. Set a wake up time and how many hours of sleep you need, and iOS offers bedtime reminders, more gentle alarms, and basic sleep trac…

struts OGNL表达式

OGNLContext对象有两部分构成 一部分是ROOT&#xff1a;可以放置任何对象作为ROOT 另外一部分Context&#xff1a;必须是Map形式&#xff08;键值对&#xff09; OGNL表达式操作 package cn.future.a_ognl;import java.util.HashMap; import java.util.Map;import ognl.Ognl; i…

制作一个用户头像选择器仿 WeGame

制作一个用户头像选择器仿 WeGameCropAvatar作者&#xff1a;WPFDevelopersOrg - 驚鏵原文链接&#xff1a;https://github.com/WPFDevelopersOrg/WPFDevelopers框架使用.NET40&#xff1b;Visual Studio 2019;制作一个用户头像选择Canvas为父控件所实现&#xff0c;展示图片使…

网曝南方电网搞末位淘汰和裁员,给各下属单位强制规定辞退率和降岗降级率!...

电网作为垄断性国企&#xff0c;在人们心中一向是好单位的代名词&#xff0c;但最近却有网友曝光南方电网搞末位淘汰和裁员&#xff0c;给各单位下了辞退率和降岗降级率&#xff0c;每个单位都要开除一部分人&#xff0c;或者把一部分人岗级降下来。有南方电网员工马上跑出来辟…

二维数组中的查找

2019独角兽企业重金招聘Python工程师标准>>> 题目 在一个二维数组中&#xff0c;每一行中的数都按照从左到右、从上到下的递增顺序排列。要求输入一个整数&#xff0c;判断数组中是否存在该整数 实现代码 function find($matrix, $rows, $columns, $key) {//TODO 参…

蓝牙追踪_如何使用蓝牙追踪器跟踪您的东西

蓝牙追踪We’ve all done it: you misplace something important and you spend a lot of time (with a lot of stress) backtracking to locate it again. With Bluetooth tracking devices you can make the hunt a lot easier, less stressful, and even avoid losing the t…

vba发送邮件 签名_如何更改“从Windows 10的邮件发送”签名

vba发送邮件 签名The Windows 10 Mail app is a decent email client that allows you to add other email accounts in addition to your Microsoft accounts. You’ll notice, though, that any emails you write in the Mail app have a default signature. Windows 10 Mail…

JAVA_SE基础——24.面向对象的内存分析

黑马程序猿入学blog ... 接着上一章的代码&#xff1a; //车类 class Car{//事物的公共属性使用成员变量描写叙述。String name; //名字的属性 String color; //颜色属性 int wheel; //轮子数 //事物的公共行为使用函数描写叙述。 public void run(){ System.out.println(name&…

煮茶社区AVR开发板第二版[转]

原图:http://blossom.cnblogs.com/gallery/image/21891.html