Skip to content

Instantly share code, notes, and snippets.

@pchhetri
pchhetri / README.md
Last active July 16, 2024 21:24
OS X iMessage (Messages) database merger

OS X iMessage (Messages) database merger

Use it at your own risk! You might end up worse than before. Backup everything beforehand. Twice.

If you have the Messages app setup in multiple Macs with the same Apple ID you may end up with iMessages (or SMS) scattered around all of these Macs. This is because after a certain time the new iMessages (or SMS) recevied will cease to push to devices afer a certain time has elapsed. Thus, if a computer has been offline for some period of time it won't get the new iMessages.

Each Messages instance stores the information in a SQLite database, to consolidate all these databases run the script below. This is where the Messages app stores the SQLite database under ~/Library/Messages, the folder contents will look like as follows:

  • chat.db

Keybase proof

I hereby claim:

  • I am pchhetri on github.
  • I am pchhetri (https://keybase.io/pchhetri) on keybase.
  • I have a public key whose fingerprint is A82D 6B6F 4BB5 8FA9 C375 C38A BD5B 6625 BB3E D202

To claim this, I am signing this object:

@pchhetri
pchhetri / .bash_profile
Last active August 29, 2015 14:27 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management