# Importing, Exporting & Backups

> Migrate from Eagle, import local folders or .refpack archives, understand daily database backups, full ZIP backups, and local data paths.

URL: https://refto.one/app/docs/importing-and-backups
Markdown: https://refto.one/llms.mdx/importing-and-backups

Your library belongs to you. Refto makes it straightforward to bring existing collections in, export items out, and keep verified backups on your own storage.

## Importing from Eagle [#importing-from-eagle]

Refto includes a built-in **Import from Eagle** flow (available from the sidebar library menu):

- Imports your media files along with their **folders, tags, notes, star ratings, and source URLs**.
- Preserves your existing organization while letting Refto index everything with local AI search and colour palettes in the background.

## Importing folders & `.refpack` archives [#importing-folders--refpack-archives]

- **Local folders (`⇧⌘I`):** Import files or nested folder trees directly from Finder. Refto automatically skips hidden system files, private keys/certificates, and development build directories.
- **`.refpack` packs:** Import portable Refto packs shared from another Mac or exported from another library.

## Exporting [#exporting]

- **Drag out:** Drag any selection straight into Finder, Figma, Keynote, or another app.
- **Export files & `.refpack`:** Export original files or bundle items with their metadata (tags, notes, source URLs) into a `.refpack` archive.

## Automatic daily database backups [#automatic-daily-database-backups]

Every `.reflib` library automatically maintains a verified daily backup of its index database inside `<library>/backup/`:

- **What it backs up:** Only the index database (tags, folders, ratings, notes, boards, and AI analysis)—**not** duplicate copies of your media files.
- **Minimal disk usage:** Keeps only the latest verified backup (at most once per day, skipped if nothing changed). On APFS volumes, Refto uses copy-on-write cloning (`clonefile`) so the backup uses virtually no extra space.
- **Excluded from Time Machine:** The `backup/` folder is automatically excluded from Time Machine to avoid redundant snapshots.
- **Verified before replacing:** Refto writes to a temporary file and runs a read-only SQLite integrity check (`quick_check`) and schema check before atomically replacing the previous backup. A damaged database will never overwrite a healthy backup.
- **Manage in Settings:** View backup size, toggle automatic database backups, or clear Refto-generated database backups in **Settings → Advanced (Storage)**.

## Full library ZIP backups [#full-library-zip-backups]

If you want a complete offline archive for an external drive or NAS, enable **Full Library Backup** in **Settings → Library**:

- Bundles the database, library metadata (`folders`, `tags`, `smart-folders`, `boards`), and all original media items into a dated `.zip` archive.
- Skips automatically if the library has not changed since the last backup.
- Thumbnails (rebuildable) and externally linked files are excluded by default and can be opted in via backup settings.

## Local data locations & privacy [#local-data-locations--privacy]

| Location | What lives there |
| --- | --- |
| `~/Library/Application Support/Refto` | App settings, local AI model cache, logs, local API metadata (`api.json`, `api-clients.json`), and format extension components |
| `*.reflib` (your chosen path) | Your library database, item files, metadata, boards, thumbnails, and daily `backup/` |
| macOS Keychain (service `Refto`) | Local API / MCP token |

Refto never uploads your library files, index, or notes to any remote server.
