Get full control over Time Machine

Get full control over Time Machine

Backing up your data is an important task — even more important, than publishing posts on Twitter and Facebook. If you do not do regular backups of your Mac, you may lose your photos that were gonna post. Therefore, to ensure that your data has been safely, is crucial.

Time Machine is a great tool that will allow you to ensure the safety of all your files. To configure its easy, and for most users, the basic interface Time Machine enough. However, if you want to learn how to use advanced features of this tool, for this you have to use the command-line, and in this article we will discuss how to fully subjugate the “time Machine”.

To begin the development of the tool, need to open the Terminal application and use the tmutil command. Next, consider what tweaks you can make in a Time Machine from the command line.

The basics

These commands can be useful for you if you are away from your Mac, but you need to manage your backups. The basic functions of the command tmutil you can see, typing in the command prompt man tmutilin. Opened on the screen page tells you what you can do with this command. For example, to remotely switch on or off Time Machine, use these commands:

sudo tmutil enable
sudo tmutil disable

The sudo command must be used together with many commands that you run using tmutil, because you need to have administrator rights. After running these commands you will be required to enter your password. If you want to start creating a backup Mac with Time Machine or is disabled before updating to a new version of OS X, you should run this command:

tmutil startbackup

It’s the same if you select “backup” from the Time Machine menu in the top of the screen. But if you want to stop the backup process, simply run the following command:

tmutil stopbackup

Saving disk space on your laptop

Since your laptop is not always connected to the external drive for backups, Time Machine keeps “local copy” files on his hard drive, stored there until until the external drive is not available. Needless to mention that these copies occupy enough space. If you want to get rid of them and free up space on your hard drive, you can use the following command:

sudo tmutil disablelocal

This command will remove all the “ghosts” of your files on your hard drive. If you want to return them, then you can use the command:

sudo tmutil enablelocal

Add exceptions for folders and files

If you don’t want certain folders and files were copied to an external drive or Time Capsule, you can specify them in the Time Machine preferences in System preferences. Of course, this function can be used from the command line. For this Terminal you need to dial:

sudo tmutil addexclusion

Then you should specify the path to the desired file or folder. For example, we want to add an exception for the folder downloads, and for this we need to use the following command:

sudo tmutil addexclusion ~/Downloads

Management of remote backups

If you control a remote Mac, for example, by the server, you may want change settings Time Machine for this computer. First you need to set that stores a Time Machine backup for this machine. Run this command:

tmutil destinationinfo

In the Terminal you will see something like this:

Name : TM Backup
Kind : Local
Mount Point : /Volumes/TM Backup
ID : B9DAT9A6-0C37-4C39-A2AE-10A3403C97F9

To change the path, you can use two commands. First you need to remove the current path as follows:

tmutil removedestination

Instead of space, type the text that is issued by the destinationinfo command. Then you need to run this command to set the path to the new disk:

tmutil setdestination volume_name

Here is volume_name you should type the name of the drive that you want to use. Optionally, you can specify multiple paths, because Time Machine can rotate your backups on multiple drives.

Get statistics Time Machine

Time Machine makes multiple backups, one every hour during the last day, one a day for the last week and one for the previous week. To view the list of backups made, you can use the following command:

tmutil listbackups

This command allows you to see the full path of each backup. If you’re wondering if anything has changed in your backups Time Machine, there is a command that allows you to see what’s new contained in each backup. It looks like this:

tmutil calculatedrift backup_folder

Here is backup_folder need to specify the path to the folder containing your backups. And it won’t be a Backups folder.backupdb at the root directory of your Time Machine, and the folder at a lower level. Usually, it is named after the name of your Mac. The fruit of the work of the team might look something like this:

Get full control over Time Machine

Please note that this application requires some time, as your Mac will need to calculate the necessary information.

The command tmutil and offers many other features such as implementation of detailed comparisons of backups, restoration of objects from backup and more. If you love to immerse yourself in the wilds or are forced to use your Mac remotely, you probably it is very useful.

According to the materials

Get full control over Time Machine

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *