Last active
September 15, 2021 08:02
-
-
Save kitzberger/91cc3d2386a5db58bbfa7354c188fedd to your computer and use it in GitHub Desktop.
Export powermail records since a given date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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