Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Last active September 15, 2021 08:02
Show Gist options
  • Save kitzberger/91cc3d2386a5db58bbfa7354c188fedd to your computer and use it in GitHub Desktop.
Save kitzberger/91cc3d2386a5db58bbfa7354c188fedd to your computer and use it in GitHub Desktop.
Export powermail records since a given date
DB=xxx
PID=123
SINCE=2020-05-08
# Or with time
#SINCE=2020-05-08 16:00
mysqldump $DB --no-create-info --complete-insert \
tx_powermail_domain_model_mail \
tx_powermail_domain_model_answer \
--where "pid = $PID AND crdate > UNIX_TIMESTAMP('$SINCE')" > powermails-in-$PID-since-$SINCE.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment