Skip to content

tmutil MacOS command

The tmutil command in MacOS is a powerful utility that provides users with advanced options for managing Time Machine backups. With tmutil, users can control Time Machine settings, create, delete, or restore backups, and monitor backup status. This command enables users to efficiently manage their backup storage and ensure that their important data is securely backed up. By utilizing tmutil, MacOS users can take full control of their Time Machine backups and have peace of mind knowing that their data is protected.

tmutil Syntax:

Terminal window
tmutil [command] [options] [arguments]

Options:

OptionDescription
-hHelp - Show help for the tmutil command.
-vVerbose - Enable verbose mode for more detailed output.

Parameters:

ParameterDescription
commandThe specific action to perform with tmutil (e.g., startbackup, disablelocal, compare).
optionsAdditional settings or configurations for the command.
argumentsFile names, directories, or other data needed for the specific command.

tmutil bash Examples:

Backing Up a Specific Folder

Terminal window
tmutil startbackup /path/to/folder

Starts a backup of a specific folder using tmutil.

Listing Available Snapshots

Terminal window
tmutil listlocalsnapshots /

Displays a list of available local snapshots for the root file system.

Checking Backup Status

Terminal window
tmutil status

Checks the status of the Time Machine backup process.

Excluding a Folder from Backup

Terminal window
tmutil addexclusion /path/to/folder

Excludes a specific folder from being backed up by Time Machine.

Restoring a File from Backup

Terminal window
tmutil restore /path/to/destination /path/to/file

Restores a file from a Time Machine backup to a specific destination.

Deleting a Local Snapshot

Terminal window
tmutil deletelocalsnapshots <snapshot_name>

Deletes a specific local snapshot by its name.

How do I use tmutil in MacOS?

To use the tmutil command in MacOS, execute the following command:

Terminal window
tmutil --option <value>

What is the purpose of the tmutil command in MacOS?

The tmutil command in MacOS is used for performing Time Machine tasks and managing Time Machine backups.

Terminal window
tmutil startbackup

How can I list Time Machine snapshots with tmutil?

You can list Time Machine snapshots using the tmutil command with the following command:

Terminal window
tmutil listlocalsnapshots /

How do I exclude a directory from Time Machine backups using tmutil?

To exclude a directory from Time Machine backups with tmutil, use the following command:

Terminal window
tmutil addexclusion /path/to/directory

How can I restore a specific file from a Time Machine backup with tmutil?

To restore a specific file from a Time Machine backup using tmutil, you can run the following command:

Terminal window
tmutil restore /path/to/file

How do I enable Time Machine backups with tmutil?

To enable Time Machine backups using tmutil, execute the command:

Terminal window
tmutil enable

How can I verify the integrity of a Time Machine backup with tmutil?

To verify the integrity of a Time Machine backup using tmutil, run the following command:

Terminal window
tmutil verifychecksums /path/to/backup

How do I disable Time Machine backups with tmutil?

To disable Time Machine backups using tmutil, use the following command:

Terminal window
tmutil disable

Applications of the tmutil command

  • Enable and disable local Time Machine backups
  • Start and stop Time Machine backups
  • Customize Time Machine settings
  • Check and manage backup status
  • List and delete existing backups
  • Compare backups
  • Restore files from backups