Skip to content

Commit

Permalink
jobs: add script to backup imessage db
Browse files Browse the repository at this point in the history
havent added module to parse this yet
  • Loading branch information
purarue committed Jan 30, 2022
1 parent 5bb44bb commit e361ce8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jobs/mac/backup_imessages.job
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# backup current messages (imessage) database

evry 1 week -backup_imessages && {
readonly MESSAGES_DB="${HOME}/Library/Messages/chat.db"
printlog "imessage:backing up history database..."
backup_sqlite "${MESSAGES_DB}" "$(python3 -m my.utils.backup_to imessage)/$(date +'%s').sqlite" || send-error 'imessage: failed to backup database'
}

0 comments on commit e361ce8

Please sign in to comment.