Back up a folder to an external drive on Mac
A DockRun workflow that copies new and changed files from a folder to an external drive, and says so plainly when the drive isn't connected.
The button needs DockRun 0.1.19 or later. On an older version, download the file, then use Settings > Restore or Import… in DockRun.
Runs in DockRun Free, which holds 2 workflows.
What it does
- Copies the folder into the destination you chose, keeping its name.
- After the first run it copies only new and changed files, so it is quick.
- Never deletes anything at the destination.
- Stops with "Is the drive connected?" when the destination is missing, instead of failing silently.
What you can change
source- The folder to back up. Starts as:~/Documentsdestination- Where the copy goes. Starts as:/Volumes/Backup
The steps
Read the script below before you add it. It is everything this workflow runs.
- 1. Copy new and changed filesRuns this zsh script · Arguments: {{var.source}} :: {{var.destination}} · Time limit: 1800 seconds
# Copies a folder into a destination folder (for example an external drive). New and changed files are copied; # nothing is deleted at the destination. Fails clearly when the drive isn't connected. all="$*" src="${all%% :: *}"; dst="${all##* :: }" src="${src/#\~/$HOME}"; dst="${dst/#\~/$HOME}" [ -d "$src" ] || { echo "No such folder to back up: $src" >&2; exit 1 } [ -d "$dst" ] || { echo "Destination not found: $dst. Is the drive connected?" >&2; exit 1 } target="$dst/${src:t}" mkdir -p "$target" || exit 1 changed=$(rsync -a --itemize-changes "$src/" "$target/" | grep -c '^>f') echo "Backed up $src to $target ($changed files copied)"
After you add it
- DockRun shows what is in the file and asks before adding it. The workflow arrives turned off.
- Open it, read the steps, then turn on the On switch.
- Press Run. DockRun asks before a script runs; tick "Don't ask again for this exact step" once you trust it.
Good to know
A big first backup can take a while: the step's time limit is 30 minutes, and you can raise it in the editor.
Last tested: 2026-11-12 · All workflows →