# Copy

> Copy operations reference — file duplication, rsync patterns, CoW, buffer strategies, and cross-platform sync. Use when duplicating files, syncing directories, or implementing copy-on-write.

- Skill: `bytesagain/copy` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add bytesagain/copy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bytesagain/copy/raw
- Safety review: pending (external: skill-scanner WARNING, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bytesagain (https://skillmd.com/u/bytesagain)
- Updated: 2026-08-19
- Page: https://skillmd.com/skills/bytesagain/copy

---


# Copy — File & Data Copy Operations Reference

Quick-reference skill for file copy strategies, rsync patterns, copy-on-write, and cross-platform synchronization.

## When to Use

- Duplicating files or directory trees with specific filters
- Setting up rsync-based backups or mirrors
- Understanding copy-on-write (CoW) behavior
- Implementing efficient copy strategies for large datasets
- Troubleshooting copy failures and permission issues

## Commands

### `intro`

```bash
scripts/script.sh intro
```

Overview of copy operations — types, semantics, and platform differences.

### `rsync`

```bash
scripts/script.sh rsync
```

Rsync patterns — common flags, partial transfers, and include/exclude rules.

### `cow`

```bash
scripts/script.sh cow
```

Copy-on-Write (CoW) — reflinks, filesystem support, and when to use.

### `patterns`

```bash
scripts/script.sh patterns
```

Common copy patterns — mirroring, incremental, differential, snapshot.

### `filters`

```bash
scripts/script.sh filters
```

File filtering techniques — by extension, date, size, and gitignore integration.

### `performance`

```bash
scripts/script.sh performance
```

Performance optimization — buffer sizes, parallel copy, and I/O tuning.

### `errors`

```bash
scripts/script.sh errors
```

Common copy errors, permissions issues, and troubleshooting guide.

### `checklist`

```bash
scripts/script.sh checklist
```

Pre-copy and post-copy verification checklist.

### `help`

```bash
scripts/script.sh help
```

### `version`

```bash
scripts/script.sh version
```

## Configuration

| Variable | Description |
|----------|-------------|
| `COPY_DIR` | Data directory (default: ~/.copy/) |

---

*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*

