ClawVault
Commands

sync

Sync vault files to a target path

The sync command copies vault files to a target directory, useful for mirroring your vault to another location (e.g., an Obsidian vault, a backup folder, or a shared drive).

Usage

clawvault sync <target> [options]

Required

  • <target> — Destination path to sync files to

Options

FlagDescriptionDefault
--deleteDelete orphan files in targetfalse
--dry-runShow what would be synced without syncingfalse
-v, --vault <path>Vault pathNearest vault

Examples

# Sync to an Obsidian vault
clawvault sync ~/obsidian-vault/clawvault/

# Preview what would be synced
clawvault sync ~/backup --dry-run

# Mirror exactly (delete files in target that aren't in source)
clawvault sync ~/mirror --delete

The --delete flag removes files in the target that do not exist in the source vault. Use --dry-run first to verify.

On this page