New machine setup

Back up your computer to an external drive

Copy everything that matters to a separate drive, so a lost, broken or stolen computer doesn't take your files with it.

Fill these in once
  1. Plug in the drive and point Time Machine at itNeeds sudo
    Terminal
    sudo tmutil setdestination /Volumes/Backup

    Use the drive's name as it shows in Finder. Time Machine may offer to erase it first: only say yes if the drive is empty or only for backups.

  2. Turn on automatic backupsNeeds sudo
    Terminal
    sudo tmutil enable
  3. Start a backup now
    Terminal
    tmutil startbackup

    The first one can take hours. After that it only copies what changed, every hour while the drive is plugged in.

Check it worked

  1. See your latest backup
    Terminal
    tmutil latestbackup

    Shows the date and time of the newest backup.

  1. Plug in the drive and check where it's mounted
    Terminal · Ubuntu / Debian
    ls /media/$USER

    You should see the drive's name. Some systems use /run/media/$USER instead.

  2. Copy your home folder to the drive
    Terminal · Ubuntu / Debian
    rsync -a --info=progress2 ~/ "/media/$USER/Backup/home-backup/"

    Run the same command again later and it only copies what changed.

Check it worked

  1. Check the copy is there
    Terminal · Ubuntu / Debian
    ls "/media/$USER/Backup/home-backup/"

    You should see Documents, Pictures and your other folders.

  1. Plug in the drive and copy your user folder to it
    PowerShell
    robocopy $HOME "E:\Backup" /E /XJ /R:1 /W:1

    Run it again later and it only copies what changed. A few skipped system files at the end are normal.

  2. Or turn on automatic backups instead
    PowerShell
    Start-Process ms-settings:backup

    Opens Settings. Choose your drive under File History (or Windows Backup) for hourly copies.

Check it worked

  1. Check the copy is there
    PowerShell
    Get-ChildItem "E:\Backup"

    You should see Documents, Pictures and your other folders.

New to backup? I explain it in plain English on Layman Terms.