exec
For quick archive creation, consider the tar and zip subcommands instead.
# rsync
clean-mount exec /path/to/project -- rsync -avz . user@server:/deploy-path
# cp to a non-default location with extra flags
clean-mount exec /path/to/project -- cp -r . /tmp/my-copy
Quick peek at what would be copied:
clean-mount exec /path/to/project -- ls -la
The command runs with the filtered view as its working directory — use . for “everything here”. Use {MOUNT} in arguments only when you need the absolute path explicitly:
clean-mount exec /path/to/project -- cp -r {MOUNT}/src /tmp/src-only