How do I enable time machine in tmutil?

How do I enable time machine in tmutil?

Once you’ve configured a destination for your backups, it’s time to enable Time Machine. The simplest verbs to use are going to be the enable and disable verbs, which you might guess turn Time Machine on and off respectively. For these, you’ll need elevated privileges. To turn Time Machine on: You can also kick off a backup manually.

Where can I find the tmutil command in terminal?

The basics of the tmutil command can be found by typing man tmutil in Terminal. (You’ll find the Terminal app in your /Applications/Utilities folder.) The man page tells you what you can do with this command. For example, to turn Time Machine on or off, you can run these commands:

Is there a command line for Time Machine?

As with most of OS X’s functions, there is a command-line tool that lets you do many things with Time Machine. Here’s how you can use the tmutil command to control and tweak Time Machine from Apple’s command-line tool, Terminal. Most people won’t need to use this command for their backups because the Time Machine interface will suffice.

What does the tmutil addexclusion command do?

The tmutil addexclusion command has an interesting property: it’s sticky. When you use this command, the item you exclude remains in the Time Machine exclusion list even if you move it, which is not the case when you exclude items from the Time Machine preference pane.

How to back up time machine on Mac?

If you want to run a Time Machine backup right away, on a Mac that either has Time Machine disabled, or, say, just before updating to a new version of OS X, you can run this command: This is the same as choosing Back Up Now from the Time Machine menu in the menu bar at the top of your screen. And if you ever want to stop a backup, just run this:

How to turn time machine on and off?

To turn Time Machine on: You can also kick off a backup manually. To do so, use the startbackup verb as follows: Once backups are complete, you can see the directory they’re being stored in with the machinedirectory verb.

How to restore from a backup in tmutil?

To restore a backup, you would use the (shocking here) restore verb. First, let’s look at restoring a single file. In the following example, we’ll restore a file called mysuperimportantfile from a computer called mycomputername and provide the date of the snapshot we’re restoring from: Now, let’s look at restoring a volume.

What can I do with automated restores in tmutil?

Finally, let’s talk about automated restores. You could use this type of technology to do a rudimentary form of imaging or rolling users into a new machine. To restore a backup, you would use the (shocking here) restore verb. First, let’s look at restoring a single file.

Where do I set my destination in tmutil?

Before you do, check the destination that’s configured: Once you’ve checked the destination, you can set a destination. For example, the most common destination will be something like /Volumes/mybackupdrive where mybackupdrive is a drive you plugged into your computer for Time Machine.

When to use thinlocalsnapshots verb in tmutil?

Here, you can use the thinlocalsnapshots verb to prune the oldest data from backups. In the following example, we’re going to purge 10 gigs of data: Finally, let’s talk about automated restores. You could use this type of technology to do a rudimentary form of imaging or rolling users into a new machine.