← back to flaviocopes.com

tar / find / rsync command builder

← All tools

Three tabs, each a form that builds a real command with flag-by-flag explanations below. Copy when ready — settings sync to the URL.

~~~

tar options

Mode

Compression

Archive file

Paths to archive

One per line or comma-separated.

Extract to directory (-C)

Command

find options

Start path

Name mode

Name pattern

Type

Max depth

Size

Size unit

Modified time

Time filter

+7 days = changed MORE than 7 days ago. -7 = within the last week.

Action

Exec command (before {})

{} is replaced with each path. Ends with \; (one file per run) or + (batch).

Command

rsync options

Source

Destination

SSH port (-e)

Exclude patterns

One pattern per line.

Command

~~~

About this tool

tar, find, and rsync are the three commands you look up every few months. This builder assembles the flags you need and explains each one — including the find -mtime sign confusion and the rsync trailing-slash gotcha.

~~~

Read more