Maccyのクリップボード履歴をバックアップする方法

ガイド 執筆: 2026年6月更新 · 読了時間6分

Maccyの履歴は、本当に役立つアーカイブになりえます。クリーンインストール、移行の前や、安心のためだけでも、バックアップする価値があります。保存場所と、保存と復元の方法を正確にご紹介します。

要点: Maccyは履歴を次の場所に保持します~/Library/Application Support/Maccy。Maccyを終了し、そのフォルダを安全な場所にコピーしてバックアップします。復元するには、Maccyを終了した状態でコピーを戻します。

Maccyが履歴を保存する場所

Maccyを無料で試す無料 • オープンソース • macOS 14以降 • 約8 MB
⌘⇧C クリップボード履歴

重要な場所は2つあります:

  • ~/Library/Application Support/Maccy — 履歴データベース(クリップ)。
  • ~/Library/Preferences/org.p0deje.Maccy.plist — 設定(バックアップは任意)。

~/Libraryフォルダはデフォルトで非表示です。Finderの移動 → フォルダへ移動を使い、パスをペーストして開きます。

手動バックアップ(推奨)

  1. Maccyを終了します。データベースへの書き込みが行われないようにするためです。
  2. 開く:移動 → フォルダへ移動を開き、次を入力します~/Library/Application Support。
  3. Maccyフォルダ全体を、外付けドライブ、別のフォルダ、またはクラウドストレージにコピーします。

そのコピーが、履歴の完全なバックアップです。

バックアップから復元する

  1. Maccyを終了します。
  2. Maccyフォルダを、~/Library/Application Support内で、バックアップしたコピーに置き換えます。
  3. Maccyを再起動します。履歴が再び表示されます。

Time Machineを使う

Time Machineがオンなら、Maccyのフォルダはすでに通常のバックアップに含まれています。ほかのファイルと同じように、Time Machineのスナップショットから復元できます。手動のコピーを作っていなかった場合に便利です。

履歴を新しいMacに移す

新しいMacにMaccyをインストールして終了し、バックアップしたMaccyフォルダを、新しいマシンの同じパスにコピーします。これは次で説明している手動の方法です:Maccyにクリップボード履歴を移行する方法。ピン留め項目に限れば、iCloud同期で自動的に引き継げます。次をご覧ください:同期とローカル保存。

ヒント:データベースを再構築する修正を行う前に、バックアップしてください。たとえば起動時のクラッシュ。

Maccyが履歴を保存する場所

すべてのクリップボード履歴は、1つのSQLiteデータベースファイルに保存されます:

~/Library/Application Support/Maccy/Maccy.sqlite

このファイルには、これまでにコピーしたすべての項目(履歴サイズの上限まで)と、ピン留めした項目が含まれます。バックアップとは、このファイルをバックアップすることです。

ローカルフォルダへの手動バックアップ

# Create a dated backup on your Desktop
cp ~/Library/Application\ Support/Maccy/Maccy.sqlite \
   ~/Desktop/maccy-backup-$(date +%Y-%m-%d).sqlite

手動のスナップショットがほしいときに、ターミナルで次を実行します。大切な内容を多くコピーするなら、スクリプトに追加して毎週実行しましょう。

launchdジョブによる自動バックアップ

plistを作成して、毎日自動的にバックアップを実行します:

# Create the backup directory
mkdir -p ~/Documents/MaccyBackups

# Create the launchd plist
cat > ~/Library/LaunchAgents/com.maccy.backup.plist << 'XML'
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0"><dict>
  <key>Label</key><string>com.maccy.backup</string>
  <key>ProgramArguments</key>
  <array>
    <string>/bin/cp</string>
    <string>/Users/YOU/Library/Application Support/Maccy/Maccy.sqlite</string>
    <string>/Users/YOU/Documents/MaccyBackups/Maccy-latest.sqlite</string>
  </array>
  <key>StartCalendarInterval</key>
  <dict><key>Hour</key><integer>2</integer></dict>
</dict></plist>
XML

# Load the job
launchctl load ~/Library/LaunchAgents/com.maccy.backup.plist

Replace YOU with your macOS username. This backs up at 2 AM daily.

Using iCloud sync as automatic backup

The simplest backup strategy: enable iCloud sync in Maccy Preferences. Your history is then stored in iCloud Drive and synced continuously. If your Mac is lost, stolen, or reinstalled, your clipboard history comes back automatically on the new setup.

Enable in Maccy Preferences → General → Sync clipboard history via iCloud. See the iCloud sync guide for details.

Using Time Machine

If you use Time Machine, Maccy’s database is backed up automatically as part of your full Mac backup — it is in your home library, which Time Machine includes. No separate configuration needed.

To restore Maccy history from Time Machine:

  1. Open Time Machine
  2. Navigate to ~/Library/Application Support/Maccy/
  3. Go back to the snapshot you want
  4. Select Maccy.sqlite and click Restore
  5. Quit and relaunch Maccy

Restoring from a backup

  1. Quit Maccy completely (right-click menu bar icon → Quit)
  2. Replace the current database with your backup:
    cp ~/Desktop/maccy-backup-2026-06-01.sqlite \
       ~/Library/Application\ Support/Maccy/Maccy.sqlite
  3. Relaunch Maccy
  4. Your history from the backup date is now restored

Related articles

Where Maccy stores your history

All clipboard history is stored in a single SQLite database file:

~/Library/Application Support/Maccy/Maccy.sqlite

This file contains every item you have ever copied (up to your history size limit), plus your pinned items. Backing it up means backing up this file.

Manual backup to a local folder

# Create a dated backup on your Desktop
cp ~/Library/Application\ Support/Maccy/Maccy.sqlite \
   ~/Desktop/maccy-backup-$(date +%Y-%m-%d).sqlite

Run this in Terminal whenever you want a manual snapshot. Add it to a script and run it weekly if you copy a lot of important material.

Automated backup with a launchd job

Create a plist to run the backup automatically every day:

# Create the backup directory
mkdir -p ~/Documents/MaccyBackups

# Create the launchd plist
cat > ~/Library/LaunchAgents/com.maccy.backup.plist << 'XML'
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0"><dict>
  <key>Label</key><string>com.maccy.backup</string>
  <key>ProgramArguments</key>
  <array>
    <string>/bin/cp</string>
    <string>/Users/YOU/Library/Application Support/Maccy/Maccy.sqlite</string>
    <string>/Users/YOU/Documents/MaccyBackups/Maccy-latest.sqlite</string>
  </array>
  <key>StartCalendarInterval</key>
  <dict><key>Hour</key><integer>2</integer></dict>
</dict></plist>
XML

# Load the job
launchctl load ~/Library/LaunchAgents/com.maccy.backup.plist

Replace YOU with your macOS username. This backs up at 2 AM daily.

Using iCloud sync as automatic backup

The simplest backup strategy: enable iCloud sync in Maccy Preferences. Your history is then stored in iCloud Drive and synced continuously. If your Mac is lost, stolen, or reinstalled, your clipboard history comes back automatically on the new setup.

Enable in Maccy Preferences → General → Sync clipboard history via iCloud. See the iCloud sync guide for details.

Using Time Machine

If you use Time Machine, Maccy’s database is backed up automatically as part of your full Mac backup — it is in your home library, which Time Machine includes. No separate configuration needed.

To restore Maccy history from Time Machine:

  1. Open Time Machine
  2. Navigate to ~/Library/Application Support/Maccy/
  3. Go back to the snapshot you want
  4. Select Maccy.sqlite and click Restore
  5. Quit and relaunch Maccy

Restoring from a backup

  1. Quit Maccy completely (right-click menu bar icon → Quit)
  2. Replace the current database with your backup:
    cp ~/Desktop/maccy-backup-2026-06-01.sqlite \
       ~/Library/Application\ Support/Maccy/Maccy.sqlite
  3. Relaunch Maccy
  4. Your history from the backup date is now restored

Frequently asked

Where does Maccy store its clipboard history?

In ~/Library/Application Support/Maccy. Your settings are separate, in ~/Library/Preferences/org.p0deje.Maccy.plist. The Library folder is hidden; reach it via Finder's Go to Folder.

How do I move my Maccy history to a new Mac?

Install Maccy on the new Mac and quit it, then copy your backed-up ~/Library/Application Support/Maccy folder into the same location. Relaunch Maccy and your history is there. Pinned items can also travel via iCloud sync.

Keep reading

Try Maccy free

Open-source, private, and featherweight. No account, no telemetry.