restic backup /data --exclude "*.tmp" --tag nightly

Category: Backup & Restore

restic backup /data --exclude "*.tmp" --tag nightly

Back up /data, skipping temp files, tagged nightly

Skips files matching the --exclude glob and stamps the snapshot with the --tag label so you can filter it later. Use --exclude for patterns and --exclude-file to read patterns from a file. Combine with restic snapshots --tag nightly to list just these runs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.